Solve the problem: Longest Substring Without Repeating Characters.
Given a string s, return the length of its longest substring containing no repeated characters. A substring must contain contiguous characters.
Implement def length_of_longest_substring(s):. The input is a string, and the output is an integer.
def length_of_longest_substring(s):