Pergunta de entrevista da empresa Broadcom

Write an algorithm in pseudo code that finds a sequence of identical characters in a string