Pregunta de entrevista de Datadog

Make a function which matches a simple regexp