


Selection Sort implementation for the given array: {29,72,98,13,87,66,52,51,36} is shown below :-
The first line of input contains an integer 'T' representing the number of test cases. Then the test case follows.
The first line of each test case contains integer 'N' denoting the size of the array.
The second line of each test case contains 'N' single space-separated integers representing the array elements.
The only line of output of each test case should contain the given array sorted in non-decreasing order.
You do not need to print anything, and it has already been taken care of. Just implement the given function. Also, you need to update the given array in place only.
1 <= T <= 100
1 <= N <= 100
1 <= Arr[i] <= 1000
Where 'T' represents the number of test cases, 'N' represents the size of the array, and 'Arr[i]' represents the elements of the array.
Time Limit: 1 sec
Selection sort is a standard sorting algorithm that uses nested loops to find all the minimum elements in the array in each iteration and swap them with the starting element of the unsorted region of the array.