Google interview question

Coding question involving binary search trees