Second iteration of anagram exercise