Anagram puzzler using a hash