Amazon Interview Question

how to check if a binary tree is BST