Return the length of the longest substring of s that contains no repeated character.
Patterns: sliding-window, hashing. Difficulty: medium.
Open in Dryrun