Add solution for calculating factorial iteratively