Given a string s, find the length of the longest substring without duplicate characters.
Implement length_of_longest_substring(s). Return an integer representing the maximum length. A substring must contain contiguous characters, and the comparison is case-sensitive.
s.def length_of_longest_substring(s):