write function to print the length of longest substring without repeating characters