Simple anagram solver