Dayforce interview question

return the first duplicate character in a string