Qualcomm Interview Question

Check if a binary tree is bst.