give array integer num sort array ascend order return ityou solve problem builtin function onlogn time complexity small space complexity possible Example 1input num 5231output 1235explanation after sort array position number change example 2 3 position number change example 1 5example 2input num 511200output 001125explanation note value num necessairly unique Constraints1 numslength 5 1045 104 numsi 5 104