OpenText Interview Question

Sort array by placing arr(i) = i