Capital One interview question

Validate whether a binary tree is a proper binary search tree