Datadog Interview Question

A few algorithm exercises to solve.