Assessment - Python - Mukesh

Recursive Function:

 

Solution: