1 test case failing

Last test case is failing

hi piyush ur code seems to be fine
what error u r facing

last test case failed… I had checked for first left best and right best also.
4/5 passed…

check this

What was wrong in my code…which led it to fail for a particular case

this was a sliding window type problem which will affected by 0 so there should be a check on zero it will fail for a case when there is a large input and multiple cases