JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Approach:
As long as the left sub-tree is not None, and all the node.val in the left sub-tree is less than the root.val; if the right sub-tree is not none, then all the node.val in the right is bigger than the root.val.
Use a stack to store the nodes