Remedo interview question

Tree traverse with binary tree search