Pregunta de entrevista de TEOCO

Implement factorial function recursively and with a loop.