Datadog Interview Question

Leetcode style interview for final with 3 questions.