MathWorks Interview Question

Write a program to find the predecessor of a node in a Binary Tree.