kapil garg's submission of Splitting Candies | CodeChef