Walmart interview question

Coding: leetcode sort an array.