Dp count subsequences


only 1 test case passing
not able to find the error

hello @nischay1111

a) use long long in place of int

b)
image

in question u r asked to print modulo. (refer output section)
so use modulo property while performing above operations.
property ->
(a-b)%mod= (a-b+mod)%mod