Pergunta de entrevista da empresa Walmart

Repeated Factorial calculation optimisation