You are given a string s.
Your task is to find the length of the longest substring within s that contains no repeating characters.
Note that:
Return the length of the longest substring.
"happyday"
4
The longest substring without repeating characters is "pyda", which has a length of 4.
"banana"
3
The longest substrings without repeating characters are "ban" and "ana", each with a length of 3.
"penpineappleapplepen"
5
The longest substring without repeating characters is "pinea", which has a length of 5.
"happyday"
4