anagrams resolution