Domanda di colloquio di Microsoft

Find the first unique character in a string. Improve complexity