For this Question: Given an array A[], of size N containing positive integers. You need to print the elements of an array in increasing order.The first line of the input denotes the number of test cases 'T'. The first line of the test case is the size of the array and the second line consists of array elements.

For Python Users just complete the given function.

<b>Constraints:</b>
1 &le; T &le; 100
1 &le; N &le; 1000
1 &le; A[i] &le; 1000For each testcase print the sorted array in a new line.Input:
2
5
4 1 3 9 7
10
10 9 8 7 6 5 4 3 2 1

Output:
1 3 4 7 9
1 2 3 4 5 6 7 8 9 10

<b>Explanation:</b>
Testcase 1: 1 3 4 7 9 are in sorted form.
Testcase 2: For the given input, 1 2 3 4 5 6 7 8 9 10 are in sorted form., I have written this Solution Code: 
import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
	int t = sc.nextInt();
	while(t-->0){
	    int n = sc.nextInt();
	    int a[] = new int[n];
	    for(int i=0;i<n;i++){
	        a[i]=sc.nextInt();
	    }
	    int temp;
	    for(int i=1;i<n;i++){
	        if(a[i]<a[i-1]){
	            
	            for(int j=i;j>0;j--){
	                if(a[j]<a[j-1]){
	            temp=a[j];
	            a[j]=a[j-1];
	            a[j-1]=temp;    
	                }
	                else{
	                    break;
	                }
	            }
	        }
	        
	    }
	    for(int i=0;i<n;i++){
	        System.out.print(a[i]+" ");
	    }
	    System.out.println();
	}
	

}
	    


}, In this Programming Language: Java, Now tell me if this Code is compilable or not?