FDM Group interview question

Sorting elements of an array