Pergunta de entrevista da empresa Smart Megh

How to print the first non-repeated character from a string?