FDM Group Interview Question

How to do a sorting algorithm