Domanda di colloquio di Yahoo

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