add the solution of longest substring without repeating characters problem in leetcode and refactor code