Can any one tell about XOR sequence

i have solved xor sequence using sparse table but half test cases are wrong can any one tell what is the mistake i have done???
problem: xor sequence
my solution : click here