Pregunta de entrevista de Amazon

A question on binary tree.