Question d’entretien chez Amazon

Write a code to find out if a tree is a binary search tree.