SDG&E may compare outage alert text generated by different systems. Write a function that determines whether one string is a permutation of another, meaning both strings contain exactly the same characters with the same frequencies.
The comparison is case-sensitive, and spaces, punctuation, and digits are treated as ordinary characters. The order of characters does not matter.
Implement are_permutations(s1, s2).
s1 and s2.True if s2 is a permutation of s1; otherwise, return False.def are_permutations(s1, s2):