Doubt on hackerblocks

s://hack.codingblocks.com/app/practice/1/740/problem

Please help me to solvet this problem

Hello @Somasree you are not able to write code for this question?
do you want code?

yes.Actually I am not getting the correct output in this pattern problem

Hello @Somasree check this:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.