I tried code with same approach

but then why is it showing 2 test cases rest all are satisfying why??

code https://ide.codingblocks.com/s/319098

1 Like

hey tejas,
Can you provide me the question link please.