Pregunta de entrevista de Meta

Problem related to binary search tree.