Question d’entretien chez Amazon

Check whether a tree is a BST or not?