Hollow Rhombus: In this question, my code is printing the right output for all the inputs I have tried in it. But when I’m trying to submit it shows the Wrong Answer. Please help me with the code!

link to the code :