Booking.com interview question

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