Question d’entretien chez Salesforce

Maximum substring from given substring containing all different characters