Hello,
Something intrigued me in your code: you’re returning “false” if str2.length > str1.length,
what happens if str2 is larger than str1, yet contains the same characters ?
example:
mutation(["Mary", "Aarmy"]);
Your function would return “false”, not the expected result.
Have you thought of managing duplicate characters ?