Solution to morning exercise Anagram example