Metromile Interview Question

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