Pergunta de entrevista da empresa Meta

Tech screen asked a leetcode hard (Binary tree)