Virtusa interview question

Fibonacci Oops