easier solution to Anagrams