Datadog Interview Question

Make a function which matches a simple regexp