ByteDance Interview Question

Find the longest substring without repetition.