Shopee interview question

Leetcode question, how to sort an array O(NlogN)