Https://ide.codingblocks.com/s/309824

Where my code goes wrong

@anuranjan8319918906
a) summation can exceed the range of int so use long long
b) total sum of a node can also be a valid candidate for maximum so include that as well while updating max sum of a node
you can refer to this