Frage im Vorstellungsgespräch bei EY

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