Deloitte interview question

Fibonacci series