UnitedHealth Group interview question

Write a function to validate Binary search tree?