Plz check what is wrong in code

link

why you have taken f1 and f2?
i didn’t understand your logic

you can try the reference code

Reference Code

why is i not changing plz why we are not entering the loop my doubt is i<s1.length()-1 && cnt<de_cnt why are we not entering the 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.