Question d’entretien chez Yahoo

Write a code to check whether the given tree is Binary Search Tree or not.