Intel Corporation Interview Question

How to sort an array