Question d’entretien chez Amazon

write a function to determine if a binary tree is an actual BST