IXL Learning interview question

pair programming exercise, algorithmic questions