Accenture Interview Question

Write the algorithm for Fibonacci series