Unthinkable interview question

Python program to count the length of longest substring with no repeating characters.