Not getting output


please find flaw in my code and tell me what is wrong in my code

hello @shivamgoel150
image
here s1 size will keep on changing in both the loop thats why dont use it inside the loop.
store s1.size() in some variable and then use that variable in the for loop

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.