Find Number of Coins to Place in Tree Nodes

Find Number of Coins to Place in Tree Nodes - Coding Problem | K5kC