thesqua.re interview question

Sorting algorithm