Start by taking a piece of graph paper and drawing the pattern on it.
Then look at what is printed on each line starting at the top.
The code will need to print a line for each line on the graph...