The main function which returns sum of the maximum sum path betwee ntwo leaves . THis function mainly uses maxPathSumUtil ( )
def maxPathSum ( root ) : NEW_LINE INDENT res = [ INT_MIN ] NEW_LINE maxPathSumUtil ( root , res ) NEW_LINE return res [ 0 ] NEW_LINE DEDENT