Hi Team,
I am unable to code it. Can you please help me out? I am doing this using Python3.
Thank you.
what should be the base case?