Hollow diamond pattern

I have spent 1 day but i cant pass all test cases so someone help me with the solution

hi @agarwaldaksh360_2bae042448e62c08,
refer

this code is also not passing all test cases

hi @agarwaldaksh360_2bae042448e62c08,
https://ide.codingblocks.com/s/672808 ( u need to uncomment first line that was for exp)

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.