FDM Group Interview Question

Sorting elements of an array