Datadog interview question

match incoming strings against a query