Why all the test are not getting passes

Hey @saurabh66 you won’t get correct output for that because your char *arr will only point to arr[0] always. You won’t be able to iterate using only char *arr, take an extra variable of int I, start it with 0 till it reaches null point of arr. this will help you solving this problem :slight_smile:

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.