Tech Mahindra interview question

Fibonnacci Series program