Infosys Interview Question

Fibonacci Series question and multiple ways to do it.