Valid Anagram
Problem statement
Given two lowercase English strings s and t, return true if t is an anagram of s, and false otherwise.
Function
isAnagram(s: String, t: String) → booleanExamples
Example 1
s = "anagram"t = "nagaram"return = trueExample 2
s = "rat"t = "car"return = falseConstraints
0 <= s.length, t.length <= 100000.- Both strings contain lowercase English letters only.