- Wrote iterative version of factorial