Pregunta de entrevista de Google

Coding question involving binary search trees