Zendesk interview question

Some algorithm questions on the whiteboard