apple pie's submission of Coins And Triangle | CodeChef