Cognizant Interview Question

Fibonaaci series and arrays problem