Understand how to convert a tree into its sum tree, where each node contains the sum of its children.