Deloitte Interview Question

Write code for Fibonacci series