Domanda di colloquio di Parkwheels

Given a binary tree find its a BST or not