TLE in last test case of CHEF AND FIBONACCI ARRAY (CHEFFA)

Can someone have a look at my code and tell why it is giving tle in last test case.

Question is :Chef And Fibonacci Array

Solution

Thanks in advance!