Https://ide.codingblocks.com/s/257903

wrong ans in only 2nd test case :\

Your code and logic looks fine. I am trying to get the mistake.

sir , mistake mili??

nai :weary: …

koi nhi chill , aap prateek sir ko code dikha do if possible ki kya dikkat hai

can you provide me test case 2??

its giving wrong ans

You can unlock the testcases in the editorial section

sir aap ek baar prateek sir ya kartik sir se puchlo, ki kyu nhi chalra