Hollow rhombus pattern

https://online.codingblocks.com/app/player/11915/content/54864/4696/code-challenge
https://ide.geeksforgeeks.org/BLOVtkD4oC
the code is giving correct output in ide but in hackerblocks testcases are failed what is the problem in my code?

There is issue with the number of white spaces.
For n=10
In the first line there must be 9 initial white spaces.
But your code has 10 initial white spaces.


This is the correct code. You can compare the result of your code with this.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.