Infosys interview question

Java program to print the Fibonacci series