Domanda di colloquio di Datadog

Implement an algorithm that computes results for a simplified regex expression.