Cognizant Interview Question

write a program to print fibonacci series in java.