Yahoo Interview Question

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