Submission 2 for anagram exercise