MITRE interview question

Find the first duplicated character in a string.