apple pie's submission of Equal Coins | CodeChef