Booking.com Interview Question

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