Paytm Money Interview Question

Longest substring without repeating character