Pergunta de entrevista da empresa Accenture

Coding question about unique characters in string