Schibsted Interview Question

Whiteboard-based programming question (without code)