Whats wrong with problem

Hi @Rajat-Sharma-2078329489142103
In your code in the allindex function you are again making call to the function but are not saving its result in another array that is why your code is failing test cases. See you are passing b array in the function so no need to again return an array, instead you can just return size of b array that is j and then just print all elements in the b array.

Here is your corrected code :

If your doubt is clear then mark it as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.