Why is it not Iterating for the 2nd Loop ,I am using 2 loops but first loop is only being executed once

Please go through my solution and help me with the correct solution

hello @gvspraveen113
please share ur code using cb ide.

Hey @gvspraveen113
Can you post your code?

Yes,now please check it

Can you post the link of the coding blocks ide

I don’t know where I can find the link of CB IDE. Pls help me.Shall I post the code here?

Hey you can post here itself

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.

https://ide.codingblocks.com/s/480447 Pls go through my solution. Verdict - WA on all private test cases

check now

Thank you @Aman Yadav. I got the solution accepted

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.