Question 7 problem

I am anable to think relationship between mst and nsp in this problem .please help me

Plzz help me in this problem

Just think of it this way. You first need to print a line of n asterisks. Then for n - 2 lines you need to print asterisk followed by n - 2 spaces followed by an asterisk. Then simply print another line similar to the first line.

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.