Pergunta de entrevista da empresa Micro Focus

Implement the factorial algorithm in a non-recursive way.