IBM interview question

Sorting Algorithm