Wrong solution for problem KMXOR

for problem “https://www.codechef.com/problems/KMXOR”, I am getting wrong answer

My solution: https://www.codechef.com/viewsolution/19707356

Can somone please tell what is wrong in my solution since am unable to figure out?

Thanks