Implement `lengthOfLongestSubstring(s)` returning the length of the longest substring of `s` with no repeating characters.
+ 1 hidden test run on Submit.
A variable window with last-seen indices finds the longest unique substring in O(n).
Run your code to see results.