Pergunta de entrevista da empresa Beyond, Inc.

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