Petr Mitrichev's submission of Tree Connectivity | CodeChef