Pergunta de entrevista da empresa Booz Allen Hamilton

Design an algorithm to check whether a string has only unique characters.