Condition to check if the current character is the first character of the string T then increment the overlapping count
if ( index == 0 ) { overlap ++ ; if ( overlap >= 2 ) max_overlap = max ( overlap , max_overlap ) ; count [ index ] ++ ; } else {