SPOJ SUBXOR

need help in SPOJ SUBXOR.Read Lalit Kundu article on quora, but unable to understand it, pls help