Amazon interview question

Replace parent node value with sum of child node value in binary tree.