Longest Substring Leetcode Solution In Python A Namespace