Candy Problem