Pergunta de entrevista da empresa Metromile

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