Andy\'s anagram solver