Wrong Answer while solving the code challenge

I tried to solve the binary strings problem ( which says to count the number of binary strings which do not have consecutive one’s ) using recursion but it was giving me a TLE error. So I tried to implement dp in it and it was giving me accurate results on the test cases that I gave to it. But while submitting the same on the coding blocks platform, it is giving me wrong answer in two test cases. I am unable to find any edge cases that is causing it. The code is given —> https://ide.codingblocks.com/s/265382

hello @souptiksarkar4572
use long long , for ur arr array and function return type

Thank you very much. Using long long it gave the correct answer.