is_anagram(s1, s2) that returns True if s1 and s2 are anagrams of each other — the same letters, same counts — ignoring case and spaces entirely.s1 = 'listen', s2 = 'silent'
True
Same letters rearranged.
s1 = 'Dormitory', s2 = 'Dirty Room'
True
Case and spaces are ignored before comparing.
s1 = 'hello', s2 = 'world'
False
Different letter counts.
Strip spaces and lowercase both strings first.
Two strings are anagrams if their sorted characters are equal.