Sears interview question

Sorting algotrthm