10times interview question

Fibonacci series code