Pergunta de entrevista da empresa Salesforce

Maximum substring from given substring containing all different characters