1function lengthOfLongestSubstring(s) {2 // Your code here3}
Solve the problem first before reviewing the solution!