Pergunta de entrevista da empresa Amazon

Arrange values into a binary tree and retrieve that a specific value