Solve Candies

Help Alice to save money by minimizing the total number of candies. Solving code challenges on HackerRank is one of the best ways to prepare for programming interviews.