Amazon Interview Question

Write a program to check of a binary tree is a binary search tree.