leetcode: candy