FDM Group interview question

How to do a sorting algorithm