Tilling Problem -II

it is not passing all the test cases

hello @vivekpatel,
use modulo arithmetic property.
i.e (a+b)%mod=(a%mod + b%mod)%mod

dont change datatype to int.
keep it long long


even now the code is not working


a)
in place of n it should be i.

b) your function return type should be long long