Given a string s , return the length of the longest substring that contains no repeated character. A substring is a contiguous slice of the string. Input format Input is [s] , e.g. [ abcabcbb ] .