TATA ELXSI interview question

Oops, implement fibonacci series etc.