Domanda di colloquio di Amazon

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