Hexaware Technologies Interview Question

How to arrange the array in ascending order?