apple pie's submission of Adjacent Sum Parity | CodeChef