SanketAndStrings only 1 test case passed

Hi!
Please read the comments in the below code to find the problem with your code

code

Thanks!

Can you correct the code I can’t still do it.

The approach is incorrect buddy. I can’t simply share the whole solution with you. I can only help you by debugging the code that you have written
Try it by using 2 pointers. I have added a hint that should help you to solve it.

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.