Much shorter anagram logic.