Given two strings and , return true if is an anagram of , and false otherwise. An anagram uses the same characters with the same frequencies, just rearranged.
For example, "listen" and "silent" are anagrams. You're applying a direct application of frequency counting. Compare the frequency maps of both strings.