Pergunta de entrevista da empresa NowPow

They asked me a binary-tree coding challenge question