Comcast interview question

Whiteboard programming riddles