Anonymous interview question

solving coding problems like anagrams