hey i am getting wrong answer in 2nd testcase. i had passed the first testcase of the problem. i had also passed all the testcases for the same problem on codeforces.
i am unable to get where i am going wrong and why its showing wrong answer in 2nd testcase.
here is the link for my code->