Pergunta de entrevista da empresa Gainsight

Firstly, interviewer asked about my projects. Then, he asked one coding question i.e. if you are given a string then find the length of the largest substring which does not contain duplicate characters.