solved verify anagrams