Philips interview question

Algorithm to sort an array.