Google interview question

Basic Tree operations. Merging arrays.