Unable ti understand code

Sir i understood the printing subsequences problem which we generally took for normal cases but in this problem, i am unable to understand how to process with the logic to print strings in such a pattern

hi @94217846kunal
refer this code -->

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.