EY interview question

For technical interview was asked to write program on Fibonacci sequence with some modifications