public class Solution {
public static void numberCrown(int n) {
// Write your code here.
int space= 2*(n-1);
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
System.out.print(j+" ");
}
for(int j=1;j<=space;j++){
System.out.print(" ");
}
for(int j=i;j>=1;j--){
System.out.print(j+" ");
}
System.out.println();
space -=2;
}
}
}