Google interview question

binary search problem and binary tree