Homework2

Homework 2 factorial algorithm