Question d’entretien chez Microsoft

Q. write a code to get Longest nonrepeating sequence