Wish Interview Question

Algorithm problem about binary trees