Accenture Interview Question

Explain your logic to generate fibonacci series.