Amazon interview question

Check if a binary tree is a binary search tree