solution to Anagrams