Ordergroove interview question

Pair Programming solving a coding problem in Python