Intel Corporation interview question

How to sort an array