Paytm Money interview question

Longest substring without repeating character