Clickr Media interview question

find the longest substring without consecutive recurring characters