One of my test case is failing

This is the code could you please suggest what I am missing.

@S18APP-OL0003,
Try this: dp[i] = ((dp[i-1] % 1000000007) + (dp[i-2] % 1000000007)) % 1000000007;

Hello - It’s still same . Still same last test case is failing .

I have updated my code in the last link

Please suggest what i am missing in the code

@S18APP-OL0003,
Try using a bigger data type than int.

I am using long but its not solving the issue

@S18APP-OL0003,
Don’t use array, use simple variables, curr, prev.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.