As part of a Wipro coding assessment, write a function that determines whether two strings contain exactly the same characters with the same frequencies. Two strings are anagrams if one can be rearranged to form the other.
Implement the function without changing the input strings. The comparison is case-sensitive, and each string contains only lowercase English letters. Return True when the strings are anagrams and False otherwise.
s and t.def is_anagram(s, t):