Deloitte interview question

Write code for Fibonacci series