Add answer to check if a tree is a BST.