Domanda di colloquio di Datadog

Binary tree question which was somewhat basic