Datadog Interview Question

General algorithms. Tech phone screen was 1 easy problem then onto a harder problem.