Amazon interview question

check whether a binary tree is binary search tree or not