Pergunta de entrevista da empresa Amazon

check whether a binary tree is binary search tree or not