@@ -0,0 +1,353 @@
+import java.io.*;%0Aimport java.util.*;%0A%0Apublic class Solution %7B%0A%0A  private class Node%7B%0A    public List%3CNode%3E children = new LinkedList%3C%3E();%0A    public boolean visited = false;%0A  %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */%0A    %7D%0A%7D%0A

Create Graphs.java