Checking whether two strings are permutations of each other or not

Sir kindly tell me why am I getting the wrong answer. what is the error in my code.

hey @Shivank97, you need to have array which will hold the returned array from function.