kapil garg's submission of Coins And Triangle | CodeChef