Second Anagram implementation.