Synopsys Interview Question

balance a binary tree (binary search)