Pergunta de entrevista da empresa National Instruments

Given a binary tree whose nodes are colored either red or blue. A clump in the given tree is defined as a sub-tree, all whose nodes have the same color, Find the no. of such clumps in the given bin tree ?