Pergunta de entrevista da empresa Microsoft

Q. write a code to get Longest nonrepeating sequence