Pregunta de entrevista de MathWorks

Hackerrank coding question included a binary tree search