Pregunta de entrevista de Meta

a leetcode question about binary tree.