Pergunta de entrevista da empresa Datadog

Coding interview: - Pattern matching (without regex)