ByteDance interview question

Find the longest substring without repetition.