TBO tek receives booking-related text from different interfaces, where capitalization, spaces, and punctuation may vary. Write a function that determines whether two strings are anagrams after normalizing them.
Two strings are anagrams if they contain the same alphanumeric characters with the same frequencies, regardless of order. Treat uppercase and lowercase letters as equal, and ignore all non-alphanumeric characters.
Implement are_anagrams(first, second).
first and second.True if the normalized strings are anagrams; otherwise, return False.isalnum() is false.def are_anagrams(first, second):