Pergunta de entrevista da empresa Google

Longest path in a tree where all nodes are the same color