Pattern 11 solution for nst and nsp

pattern 11 solution for nsy and nsp

Can you explain your doubt clearly?