Hexaware Technologies interview question

JAVA OOPS CONCEPT , Fibonacci Series