Element 84 interview question

It was a live pair programming exercise