Solution for LINXOR

Can someone provide solution for https://www.codechef.com/problems/LINXOR

//