Pergunta de entrevista da empresa ContentWise

Implement a recursive function to compute the factorial and optimize it