finish writing the 3rd leetcode post - longest substring questoion