Pregunta de entrevista de Beyond, Inc.

A binary tree search. The main idea was to get the recursive solution properly.