Valid Anagram
L3 Easy Arrays & Hashing
An anagram check is really a letter-frequency comparison: two words match only when every letter count matches.
Two strings are anagrams when one is just the other with its letters rearranged. Given s and t, return true if t is an anagram of s, and false otherwise.
Examples
▸ s = "care", t = "race"
→ true
▸ s = "stressed", t = "desserts"
→ true
▸ s = "hello", t = "world"
→ false