Google Interview Question

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