Pergunta de entrevista da empresa Booking.com

write a program to find first non repeated character in a string?