Model N Interview Question

check whether a tree is bst or not ?