brute force for longest substring without repeating characters