Revolent interview question

It was a timed assessment.