I read of a job interview question to write some code for the following:
Write an efficient function to find the first nonrepeated character in a st
def firstNotRepeatingCharacter(s):
for c in s:
if s.find(c) == s.rfind(c):
return c
return '_'