Given a string s, return the length of its longest contiguous substring with no repeated characters.
The substring must use adjacent characters from the original string.
Inputs = "abcabcbb"
Output3
abc has three distinct characters. Every run of four consecutive characters repeats a letter, so the maximum length is 3.
Inputs = "bbbbb"
Output1
One b is a valid substring. Any longer substring contains another b, so the maximum length is 1.
0 ≤ s.length ≤ 50,000