Metromile interview question

Write an algorithm to find the first non-repeating character in a string.