Amazon interview question

Get an array and make it in ascending order.