Amazon Interview Question

Sort elements in an array.