

If n = 10 and nums = [1, 6, 0, -1, 9, 4, 32, 76, -98, 3], then the sorted list would be [-98, -1, 0, 1, 3, 4, 6, 9, 32, 76].
The first line of input contains an integer ‘T’ denoting the number of test cases to run. Then the test case follows.
The first line of the input contains an integer ‘N’ denoting the number of elements in the list.
The next line contains N space-separated integers denoting the elements in the list.
For each test case return the sorted list.
Note:- You don’t need to take input or print anything. This already has been taken care of. Just implement the function.
1 <= T <= 100
1 <= N <= 5000
-10^3 <= nums[i] <= 10^3, where 0<=i<N-1
Approach:
In count sort first, we find the number of the object with the specific key values, similar to what we do in hashing.
Then we will find the position of each object in the output.
Algorithm:
numCount[a[i] - min]+=1; where ‘a’ is the given array and min is the minimum element in the given array.
numCount[i] = numCount[i] + numCount[i-1].
ans[numCount[a[i] - min] - 1] = a[i];