Wildcard pattern matching

3 test cases are failing . Could you please help me out find where I’m going wrong

Does your code works for the following condition:-
When the source text length gets zero and pattern length is not zero , then it must return true if every character of pattern left is * otherwise it must return false .

Yes it works for this case