Checking-in iterative and recursive implementation of finding factorial