Rooted Tree Graph | CodeChef