Nikitosh and xor | CodeChef

REBXOR Problem - CodeChef , I have almost try to implement the solution explained in editorial, and I am getting TLE in 3 tests of second testcase. Can someone tell me the part of code, which is causing TLE.
My Solution
Thanks !