RBC interview question

Check if a tree is a binary search tree