Cognizant Interview Question

Code for Fibonacci series and factorial