TESTCASE # 1 showing wrong answer


What’s wrong in the code? How can I correct that??

Hello @J19APPPP0007,

You code is producing incorrect results for testcases like:
Example 1:
2 0
0 0
Expected Output:
0
0 0

Example 2:
1 0
0
Expected Output:
0
0

Hope, this would help.
Give a like, if you are satisfied.