Implement isBST

isBST is a function that checks whether the binary tree satisfies the
BST property and outputs a boolean value.