Arnold Clark interview question

Homework based technical test