Poshmark may need to compare two pieces of listing text to determine whether they contain exactly the same characters in a different order. Write a function that checks whether one string is a permutation of another.
Two strings are permutations if they have the same length and every character appears the same number of times in both strings. Comparisons are case-sensitive, and spaces and punctuation count as characters.
Implement are_permutations(first, second):
first and second.True if second is a permutation of first; otherwise, return False.def are_permutations(first, second):