Cognizant interview question

Write fibonacci logic and explain the same