Texas Instruments interview question

C code to implement Sorting Algorithm