Parkwheels interview question

Given a binary tree find its a BST or not