Infogain Interview Question

Code to sort the array in ascending order