Hello Codeforces community, I was solving Codeforces Round450 Problem C. I wrote code after understanding the editorial but I am not able to pass test case #26. I tried various test cases but I am getting right answer on all those. Can anyone help me in debugging the solution?
Submission Link --> 33190872