Nagarro Interview Question

Sort an array with o(n) time complexity.