Pregunta de entrevista de Capgemini

Aked to write a python code using recursive functions