Question d’entretien chez Amazon

given a binary tree, return if it's a search tree