leetcode: Candy