Wildcard pattern

wrong answer in the given test case. I am using 2d dp, couldn’t find the bug.