Ninja has been given an arbitrary array of integers of size ‘N'. You can think of the array as the concatenation of two individually sorted arrays in non-decreasing order. Ninja needs to sort the entire array in ascending order.
Can you help Ninja to sort the array?
Note :
Both the partitions need not be of the same size.
Input Format :
The first line of the input contains a single integer 'T', representing the number of test cases.
The first line of each test case consists of a single integer, representing the size of the array.
The second line of each test case contains 'N' space-separated integers, denoting the elements of the array.
Output Format :
For each test case, print the elements of the array in the space-separated form which is sorted in non-decreasing order.
Note :
You do not need to print anything. It has already been taken care of. Just implement the given function. Also, you need to update the given array in place.
Constraints :
1 <= T <= 100
1 <= N <= 10^4
1 <= ARR[i] <= 10^9
Time Limit: 1 sec