Last digit of fibonacci sum


this is my code ,it gives tle for the input 832564823476
. Basically this code gives the last digit of the sum of all fibonacci terms upto n.

Can you send me the question link.
I am confused in question
Program to find last digit of n’th Fibonnaci Number ? This is the question ?