1def length_of_longest_substring(s: str) -> int:2 # Your code here3 pass
Solve the problem first before reviewing the solution!