Tracxn interview question

Sort an array of numbers