apple pie's submission of Minimum Coins | CodeChef