[NP] leetcode: candy