Write a program to solve an anagram problem.
Implement are_anagrams(s, t) to return True when the two strings contain the same alphanumeric characters with the same frequencies, regardless of letter case, spaces, or punctuation. Return False otherwise.
The function accepts two strings and returns a boolean. Inputs contain ASCII letters, digits, spaces, and punctuation.
def are_anagrams(s, t):