Sliding window: longest substring without repeating — Python practice — Live Code Tutor