FINEOS interview question

write a method for Fibonacci sequence