Wildcard Pattern matching

My code is failing in one test cases. Please help.
IDE : https://ide.codingblocks.com/s/202736

@aman2382000
Hello Aman,
the issue is with this base case

if pat.char(i-1)==’*’ then dp[0][i]=dp[0][i-1]
otherwise false
check ur updated code here

Ok Sir. Thank You very much.