LeetCode
Longest Substring Without Repeating Characters
Click
here
for an explanation.