Cognizant interview question

Aptitude based Write code for Fibonacci series