Question d’entretien chez Bloomberg

Verify whether a binary tree is a BST or not.