Your question is Anagram Validation. 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.
Cargill systems may compare text fields such as shipment labels or reference values. Given two strings, determine whether they are valid anagrams of each other.
Two strings are valid anagrams when they contain exactly the same lowercase English letters with the same frequencies. The order of characters may differ, but every character in one string must appear the same number of times in the other. Do not ignore spaces, punctuation, or letter casing because inputs contain only lowercase English letters.
Implement are_anagrams(s, t), where s and t are strings. Return True if t is an anagram of s; otherwise, return False.
def are_anagrams(s, t):