Question d’entretien chez Palantir Technologies

"Write a function to determine if a binary tree is a binary search tree."