This phrase is figurative and should not be taken literally. It doesn't involve actual candy or children. Completing the novice level puzzle was like taking candy from a baby, so I moved to harder ones.
Pro Tip 2/3
Informality
It's a casual expression, more suitable for conversational contexts than formal writing. I didn't worry about the challenge; for me, it was like taking candy from a baby.
Pro Tip 3/3
Imbalance of Power
The phrase implies a significant power or ability imbalance, making a task extremely easy. She defeated the novice players with such skill, it was like taking candy from a baby.