Cognizant interview question

Program to write fibonacci series with and without recursion OOPS concepts