In Wildcard Pattern Matching, Constraints are upto 1e8 so If I made a DP of 1e4*1e4 its giving memory limit exceeded and if I make dp or 1e3 * 1e3 I am getting wrong in two test cases pls correct my code

Hey @yashratnani6
yash issue is with logic

Debug for this

bac
ba*a