Pregunta de entrevista de ContentWise

Implement a recursive function to compute the factorial and optimize it