Not passing test cases

I don’t know which test cases are wrong. I have tried all the values of N

hi @samikshagarg321_02590e2e7c8a8e95,
hi, you have breakdown the pattern in diff parts
upper Half (i=0 to n-1)
print some space first(n-i)
then print num in increasing order from i+1 to 2i+1
then print num in dec order from 2i to i+1

to print lower half reverse the upper half
start loop from n-2 till 0

check the reference code
Reference Code

I did the same, u can check the code, but it is still not passing any test case.

hi @samikshagarg321_02590e2e7c8a8e95
updated