Texas Instruments Interview Question

Sorting algorithms for array elements