Implement an in order traversal to validate if a tree is a BST or not.