Given a string s, find the length of the longest substring without repeating characters.
This is the easy (brute-force) variant: implement an O(n²) or better solution.
A substring is a contiguous sequence of characters within the string.
Input: A single string s.
Output: An integer — the length of the longest substring with all unique characters.
Input: abcabcbb
Output: 3
Explanation: The answer is 'abc' with length 3.Input: bbbbb
Output: 1
Explanation: Only one unique character; best window is length 1.Input: pwwkew
Output: 3
Explanation: Answer is 'wke' (length 3).0 <= s.length <= 5×10^4s consists of English letters, digits, symbols, and spaces