Not able to think

please give some hints/tips to approach such ques where pattern is like a symmetrical with blanks in between

hi @niteshwadhavindenw_0008f058881d3928,
The given pattern is seen as first stars then spaces and then stars .So for each row do the work of stars fist , then that of spaces and then that of stars. And then change the variables accordingly for next iterations…

refer this code -->