My code is showing wrong answer. Please help

@chshubham97 hey pls check this code,made some changes:

This code is showing wrong output

Can you please debug my code?

Please tell error in my code.

@chshubham97 hey which code you are talking about ,check this complete soln ,upr wla code mene change krke hi bheja tha:

Can you please debug my below code ? This is showing wrong output for given test case.

@chshubham97 hi bro ,apko backtarck bhi krna hai ,after bomb blast or changes in array you have make it unchange so that it do not affect other call ,also tabhi mene apko updated code bheja tha ,so that you can find your mistake and please make changes in your solution.

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.