Infogain interview question

Code to sort the array in ascending order