Challenge Problem

My code is:
import java.util.*;

public class Main {

public static void main(String args[]) {
			Scanner scn = new Scanner(System.in);
	int n = scn.nextInt();
	int i, j, k, l = 0, nst = 1, ns = 5;
	for (i = 0; i < n; i++) {
		if (i <= 0) {
			for (j = 1; j <= n; j++) {
				System.out.print(j);
			}
		} else {
			for (j = 1; j <= n - i; j++) {
				System.out.print(j);
			}
			for (k = 1; k <= 2 * i - 1; k++) {
				System.out.print("*");
			}
		}
		l++;
		ns = ns - 1;
		nst = nst + 2;
		System.out.println();
	}
}

}.
but it still not submitting and i can’t find any error

Hey @VinayakSingh11111 code is fine just put space b/w number and star