Cognizant interview question

Write a Java code for Fibonacci series ?