Doubt in Solving Question 33 of Pattern Practice Questions

I am having problem in printing ques 33 pattern of PATTERN PRACTICE QUESTIONS . Can you please help me in understanding the algorithm for printing this question