apple pie's submission of Xor Equation | CodeChef