Pregunta de entrevista de Smart Megh

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