https://practice.geeksforgeeks.org/problems/sum-tree/1