Nagarro interview question

Sort an array with o(n) time complexity.