solution to morning exercise Anagram example