Your question is Check If It Is a Permutation. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
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):