FDM Group interview question

How to sort an array leetcode easy questions