Ultra_fast_mathematician

My code isn’t running for one of the test cases and i am unable to find out where i am wrong cna you please help me out sir
https://ide.codingblocks.com/s/634684 this is my code

for input
1
101010 000010
correct output is
101000
but your output is
001000

Your mistake
you are always printing 0 first and the running loop from i=1
this is not correct

Modified Code