Pregunta de entrevista de Meta

Tech screen asked a leetcode hard (Binary tree)