OpenText interview question

Fibonacci numbers with some modifications