IXL Learning interview question

Data algorithm