Infor interview question

write fibonacci series logic