Micro Focus Interview Question

Implement the factorial algorithm in a non-recursive way.