Texas Instruments interview question

Sorting of files