Google Interview Question

(1) tree/dynamic programming relating algorithm