Pergunta de entrevista da empresa MathWorks

Hackerrank coding question included a binary tree search