Pergunta de entrevista da empresa Spotify

1. Write code to revert a string 2. Check if two strings are anagrams 3. Check if the string is palindrome. 4. How garbage collection works 5. What is reference counting(follow up question about cycles)