New question for in person whiteboard coding.

This question is less focused on the environment (e.g. use an editor,
compile and run code) but offers several interesting solutions and
followup discussion.