Amazon Interview Question

Get an array and make it in ascending order.