Why am I getting TLE for my XOR Game Problem (Code: XORGM) with c#?

I am getting TLE for my solutions - HIMANSHU GARG's submission of XOR Game | CodeChef
Any help appreciated.