Your question is Check Anagrams Function. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
CoStar may compare normalized listing tokens during property data processing. Given two strings, determine whether they are anagrams of each other.
Two strings are anagrams when they contain exactly the same characters with the same frequencies, possibly in a different order. The comparison is case-sensitive, and each input contains only lowercase English letters.
Implement functionSignature with two strings, s and t, as input. Return True if they are anagrams and False otherwise. The function must not modify either input string.
def are_anagrams(s, t):