Pergunta de entrevista da empresa Cognizant

Find the first character that appeared only once in a string