Update 106.Longest substring which appears more than once