import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int row = 1;
int star = n/2+1;
int space = 0;
while(row<=n){
int i = 1;
while(i<=star){
System.out.print("*"+"\t");
i++;
}
int j = 1;
while(j<=space){
System.out.print("\t");
j++;
}
int k = 1;
while(k<=star){
System.out.print("*"+"\t");
k++;
}
if(row<n/2+1){
star--;
space+=2;
} else{
star++;
space-=2;
}
row++;
System.out.println();
}
}
}
Bhaiya isme mere testcases pass ni hue… samajh hi ni aaraha kaha pr galti hai