Given the root of a binary tree, determine if it is a valid BST.
root = [2,1,3]
true
root = [5,1,4,null,null,3,6]
false