Google Interview Question

binary search problem and binary tree