TestMu AI interview question

Write a program to find longest substring without repetition