Pregunta de entrevista de OpenText

Sort array by placing arr(i) = i