SabPaisa interview question

Longest substring without repeating character