Function to find the maximum overlapping Strings
static int maxOverlap ( String S , String T ) { String str = T ; int [ ] count = new int [ T . Length ] ; int overlap = 0 ; int max_overlap = 0 ; for ( int i = 0 ; i < S . Length ; i ++ ) {