Bloomberg interview question

valid binary search tree from leetcode