Rosetta Problems

Wildcard Pattern Matching

https://judge.yosupo.jp/problem/wildcard_pattern_matching