Datadog interview question

Recursive problems