Broadcom Interview Question

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