Pergunta de entrevista da empresa State Farm

Given a string return the index of the first unique character.