Datadog Interview Question

Leet code medium-hard exercise on the first live coding