Datadog Interview Question

2 Algorithm questions