Sliding I Calculation for removing I
m [ s [ i ] ] ++ ; if ( m [ s [ i ] ] > 0 ) count ++ ; i ++ ; } } j ++ ; } if ( ans != Integer . MAX_VALUE ) return String . valueOf ( s ) . substring ( start , ans + start ) ; else return " - 1" ; }