Question d’entretien chez Akamai

Find a given tree is BST or not