Bloomberg interview question

Sorting and system design