699 the falling leaves, build tree, dfs