Candies

https://www.hackerrank.com/challenges/candies