solution of http://oj.leetcode.com/problems/longest-substring-without-repeating-characters/