Cognizant interview question

Write a code of Fibonacci Series in Java