Hollow Diamond Pattern 6

Code i not giving any output in test cases.

@Ajitverma1503
Get rid of the if condition in Line No. 7. You don’t need it. However even though your code gives output after this , it only works for testcases where N <= 5.
Try running your code for N = 7. It gives wrong output.