Last test case not passsing

don’t know what’s wrong , only last case pending

@Akshay123
your code is giving wrong answer for such cases. Consider this testcase
1 0
0
answer should be “0 0” but your code is printing “0 1” this is because you initially take i=0 and j=0. This means your code always toggle 0th index if it is 0. So change j=-1, all testcase will pass.

Thanks man very helpul