Longest Substring Without Repetition Leetcode Solutions Python