Test case are not passing, i think my approch is right

Hello @Jitu748

Initialize count = 0 for each test case
Print each output in a seperate line

Here is the modified code

Let me know if you still need any help.