Since you're not allowed to move the console cursor
backwards, you'll have to write something that prints...
This:
Then, this:
Then, this:
etc...
You could use a for loop inside which you'd print one such line per iteration.
The first and the last line could be treated as special cases.
For the rest of them, you could use a for loop to print the initial spaces,
then print a #, then use one more for loop for the second set of spaces,
and, finally, print another #.
Try doing it like this and see how it turns out.
If you think you need more help, show us your
code and we'll tell you what to fix/change.