Given a string s, find the length of the longest substring without repeating characters.
Input: s = "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
Topics: sliding-window, hash-map
Asked by: Amazon, Google, Meta, Microsoft, Apple, Bloomberg, Adobe, Uber
Time complexity: O(n). Space complexity: O(min(m, n)).