Texas Instruments Interview Question

C code to implement Sorting Algorithm