HCLTech interview question

Write the program for a fibonacci series