Completed anagram exercise