Calculating factorial

- Using linear iteration to calculate