Cisco Interview Question

Factorial iteratively, since i did it recursively first?