Tech(x) Preview displays a continuous segment of user-visible text in its compact interface. Given a string s, return the length of the longest substring containing no repeated characters.
A substring must use consecutive characters from s. Characters are case-sensitive, so A and a are different.
Implement length_of_longest_substring(s), where s is a string. Return an integer representing the maximum length of any substring with all unique characters.
def length_of_longest_substring(s):