Leetcode Check Anagram Python