Cognizant Interview Question

Basics coding questions like Fibonacci number.