I don't understand where is wrong in my code of wildcard question

link->

please solve this
…
one test case wrong and one run error

Try to think of the case when u have consecutive stars.