maxSumHelper function
public static Pair maxSumHelper ( Node root ) { if ( root == null ) { Pair sum = new Pair ( 0 , 0 ) ; return sum ; } Pair sum1 = maxSumHelper ( root . left ) ; Pair sum2 = maxSumHelper ( root . right ) ; Pair sum = new Pair ( 0 , 0 ) ;