Amazon Interview Question

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