Intel Corporation Interview Question

Write factorial function with and without recursive.