Ninja is given an array of integers ‘ARR’ of size ‘N’. He has to sort the given array in increasing order using radix sort.
Ninja called you for help as you are his only friend. Help him to solve the problem.
Example :
Input: ‘N’ = ‘4’ , 'V' = [ 2 , 1 , 4 , 3 ]
Output: "1 2 3 4"
As [ 1 , 2 , 3 , 4 ] is the sorted order.
The first line will contain the integer 'T', denoting the number of test cases.
For each test case, the first line contains a single integer ‘N’ the size of the input array.
Second-line contains ‘N’ space-separated integers which are the elements of the input array.
For each test case, print the element of the array input array in increasing order.
Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Constraints :
1 <= 'T' <= 10
1 <= ‘N’ <= 10^4
1 <= ARR[i] <= 10^9
Time Limit: 1 sec