apple pie's submission of Equal Difference | CodeChef