Goldman Sachs Interview Question

Write a program to check whether given tree is binary search tree