Google Interview Question

Basic Tree operations. Merging arrays.