an optimization for problem: <Longest Substring Without Repeating Characters>