queryng for the maximum length substring from bit array
if ( pref ( n ) - pref ( z [ i ] - 1 ) ) >= 2 : NEW_LINE INDENT length = max ( length , z [ i ] ) NEW_LINE DEDENT if not length : NEW_LINE print ( - 1 ) NEW_LINE else : NEW_LINE print ( s [ : length ] ) NEW_LINE