Akamai Interview Question

Find a given tree is BST or not