IXL Learning interview question

Algorithms