


The first line of input contains an integer ‘T’ denoting the number of test cases. Then each test case follows.
The first line of each test case contains an integer ‘N’ denoting the size of the given rotated sorted array.
The second line of each test case contains ‘N’ single space-separated integers denoting the elements of the given rotated sorted array.
For each test case, print a single line containing 'N' single space-separated integers representing the elements of the sorted array.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 50
1 <= N <= 10^4
-10^9 <= a[i] <= 10^9
Where ‘T’ is the total number of test cases, ‘N’ is the size of the array and a[i] is an element of the array.
Time Limit: 1 sec
Don’t use the sort() function.
Before Iteration
After Iteration