OpenText interview question

Sort array by placing arr(i) = i