learner's submission of Too Many Candies | CodeChef