Calculating the character count for path node x to y
for ( int i = 0 ; i < MAX_CHAR ; i ++ ) { charactersCountFromXtoY [ i ] = nodecharsCount [ x , i ] + nodecharsCount [ y , i ] - 2 * nodecharsCount [ lcaNode , i ] ; }