
Given two strings s and t, return True if they are anagrams and False otherwise. Two strings are anagrams if they contain the same characters with the same frequencies.
s = "anagram", t = "nagaram"OutputTrueWhyThe characters and their counts match exactly.s = "rat", t = "car"OutputFalseWhyThe strings contain different letters.`1 <= len(s), len(t) <= 10^5``s` and `t` consist of lowercase English lettersA frequency-based solution is expected