bool check_tree_bst(node*root){
// in case there is no tree
if(root==NULL)return true;
(check_tree_bst(root->left) && check_tree_bst(root->right) && (root->left?(root->data>root-left->data):true)
&& (root->right?(root->data<root->right->data):true)) ? return true :return false;
}