Charles Schwab interview question

Write an algorithm to plot the pascal triangle