Call Stack of this problem

I am having a bit problem in understanding the run of this program code.

So,Please can you send me the call stack of this program code.

this is recursion tree of the problem discussed in video

generally recursion tree is made to understand the problem
making call stack is a tedious task

if you want then you can make it
execute the program step by step and make call stack
share it here i will check it

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.