C++ Solution to LC 3. Longest Substring Without Repeating Characters