What is the issue with my code?


Only 1 test case is not working

Consider a test case:
1 0
0

Expected o/p:
0
0
Your Output:
1
1

Try to correct this.