AirAsia interview question

Sorting algorithm