Some testcases are giving wrong output

@mudit2jain
I went through your code,one of the tc which i found is
bac
ba*a
Your Output:1
Expected Output:0

I changed my code accordingly but still testcase 6,8,9 are giving wrong answer

@mudit2jain
Sorry for the late reply please provide your updated code once.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.