chandan's submission of Penny and Candies | CodeChef