Datadog Interview Question

A coding exercice to solve and to discuss.