Amazon Interview Question

find if binary tree is bst.