Pregunta de entrevista de Meta

Binary search tree question leetcode style question.