Jeffrey Jiang's submission of Expected Xor | CodeChef