Question from the General knowledge for developers test

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