Datadog interview question

leet code easy problem, regular behavioral questions