LeetCode

Candy

Click here for an explanation.