Amazon interview question

Sort an array in ascending order.