static void CheckBST() { var obj = new CareerCupQnA(); var obj1 = new TreesNGraph(); var binaryTree = obj1.PopulateBinarySTree(); Console.WriteLine("InOrder Starts"); Console.WriteLine(obj.CheckBST(binaryTree)); }