Intel Corporation interview question

Write factorial function with and without recursive.