Amazon interview question

Sort elements in an array.