Pregunta de entrevista de d-Matrix

Leetcode Hard question on Binary Trees