Coding puzzle

I wrote this small coding game for the boys and girls day at my workplace.

Work history:

🍪