My 2 test cases are failing

Hello @vinaykumar4530,

Your testcase is not working for the testcases like:

aa
a*?a
Expected Output:
0

a
a*?a
Expected Output:
0

a
a*a
Expected Output:
0

Hope, this would help.
Give a like, if you are satisfied.