Find longest substring without any repeated characters.

Interview question asked to Data Scientists interviewing at Walmart, CRED, Amgen and others: Find longest substring without any repeated characters..