Broadcom interview question

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