One test case not passing

Code : https://ide.codingblocks.com/s/655459

hi @singhsaurabhlps7_18d9f31919917399 ,
your logic is correct you were just missing newline after every test case and position of for loop for test cases was not proper
check this : https://ide.codingblocks.com/s/655460

hope this clears your doubt

I’ve added comments where change was required :slight_smile:

thanks very much for the explanation.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.