Texas Instruments interview question

Sorting algorithms for array elements