Compass interview question

Nothing too interesting.