Pergunta de entrevista da empresa d-Matrix

Leetcode Hard question on Binary Trees