For this Question: You are given an integer n, you have to print a Inverted half pyramid of size n.The first line contains a single Integer n.

<b>Constraints</b>
1 &le; n &le; 100Print inverted half pyramid of size n.Sample 1:
Input: 
3
Output:
1 2 3
1 2
1
Explanation:
Inverted half pyramid of size 3., I have written this Solution Code: import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt(); 
        assert n>=1&&n<=100 : "Input not valid";
        // loop for rows
        for(int i = n; i >= 1; i--) {
            // loop for columns
            for(int j = 1; j <= i; j++) {
                System.out.print(j + " ");
            }
            System.out.println();
        }
        
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?