Micro Focus interview question

Implement the factorial algorithm in a non-recursive way.