Leetcode: Candy