FDM Group Interview Question

They asked me to sort an array in ascending order