solution for Candy