Tech Mahindra interview question

Fibonacci series program