Solution not clear

can you give me a dry run of the solution provided

hi @Divit-Goel-2940158062683318 is there a certain part you did not understand or do you need explanation for the whole program?

i didnt get the part where the function is being called(recursion)

hi @Divit-Goel-2940158062683318 please share the code that you are referring to.

i was referring to the solution provided with the question itself

@Divit-Goel-2940158062683318 okay whatever code you are referring to can you please share it here?