Instacart interview question

Implement string matching function with wildcards.