Pregunta de entrevista de Infosys UK

Recursion in python with therotical explanation