Not understanding the flow of recursion in given problem

Hello sir,
Problem: Mapped Strings
Problem Link:
Solution link:

I have the correct solution of the code which I got from the discussion. After the thorough analysis, I still can not get that how count = 2 decreases to count = 1 and then satisfy the condition of if(count<s-1).

Hello @haardpatel07,
Please share the solution for which you are talking about.

I have already shared.
Still, I am posting again if it not works.

Solution link: