Add solution for "tricolorization" problem