Yelp Interview Question

Given a tree find if it's a bst or not