Program to Check if a Binary Tree is BST or not

Please write your own version of program in the comment section below in different languages. Best answer will be uploaded on the website page once, the page is ready

Prepare Better for Placement Papers