candy

greedy algorithm