Hollow rhombus pattern

import java.util.*;
public class Main {
public static void main(String args[]) {

Scanner sc =new Scanner(System.in);
int N =sc.nextInt();
int nst=N;
int nsp=N;
int row=1;
while(row<=N&&N<=20)
{
if(row==1||row==N)
{
for(int csp=1;csp<=nsp;csp++)
{
System.out.print(" “);
}
for(int cst=1;cst<=nst;cst++)
{
System.out.print(”");
}
}
else
{
for(int csp=1;csp<=nsp;csp++)
{
System.out.print(" “);
}
for(int cst=1;cst<=nst;cst++)
{
if(cst==1||cst==nst)
{
System.out.print(”
");
}
else
{
System.out.print(" ");
}
}
}
System.out.println();
row++;
nsp–;
}

}
}
testcases not executed where i wqent wrong plz correct

Hey @karthik1989photos
code is fine
just a change
int nsp = n-1 instead of int nsp = n
correct code