Valid Anagram
Given two strings s and t, return true if t is an anagram of s — the same characters with the same counts, just reordered. Different lengths → immediately false. The clean answer is a single character-count map.
isAnagram("anagram", "nagaram"); // true
isAnagram("rat", "car"); // false