Confluent Interview Question

Wildcard Pattern matching like in regex