Test cases not getting clear

i am confused with spaces at even places in pattern
whether to give two spaces or space after each number
although logic is cleared

2 spaces are given before each row and 3 spaces are given after each number.
Check out my code -

here is my code link

yes sir i got the error ,I have printed n+1 rows