Solution to ME Anagram example