Deloitte Interview Question

Fibonacci series