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
The longest substring is "abc".
Inputs = "bbbbb"
Output1
0 ≤ s.length ≤ 50,000