Abendsen assign mission Juliana in mission Juliana root tree n vertex vertex number 1 root tree each vertex black white at vertex white Juliana ask process q query each query type if vertex v white mark black perform operation direct son v instead Mark vertice subtree v include v white Find color ith vertex an example operation 1 1 correspond example test the vertex 1 2 black operation go son instead can help Juliana process query