NumPy allowed · plain Python earns 10 bonus points
Implement anagram detection via character-frequency counting -- the hash-map pattern for "do two collections have the exact same multiset of items?" that generalizes far beyond just letters.
Implement is_anagram(s, t): if the lengths differ, they cannot be anagrams. Otherwise count each character in s, then decrement for each character in t; the strings are anagrams exactly when every count returns to zero.
is_anagram(s: str, t: str) -> bool