Three-coloring of binary trees

Problem Name:
Three-coloring of binary trees
Site:Spoj
Links:
Tags:
Problem setters: