Question d’entretien chez Amazon

Function to detect if Binary tree is BST.