Cognizant Interview Question

Aptitude based Write code for Fibonacci series