Why did you add MOD to the ans??
Fibosum hint -Hackerblocks
hey @aiman.mumtaz when taking mod of a subtraction x-y if x < y it will create a negative number and mod with negative number will produce unintended results so we add mod this makes x-y+mod a postive number and now we can take its mod
Please refer to below article to more about this:
okay!! Thank you so much