SabPaisa Interview Question

Longest substring without repeating character