Getting WA on CF (F. Number of subsequences) (div3 674)

getting WA on tc#2 of F. Number of subsequences please, help!
submission (basic rec DP)

I don’t know what cases i am missing, could not understand the editorial help!