LinkedIn Interview Question

Given a binary tree, check if it's a BST or not.