Question from the General knowledge for developers test

Write a function that returns the first non-repeating character in a string.