Google interview question

Two questions, one about binary tree and the other about strings