Pregunta de entrevista de Meta

Technical questions involving binary tree