Frage im Vorstellungsgespräch bei Datadog

One easy algorithm problem. Then another one which was a bit more complex (requiring recursion).