candy problem