Структура графического узла
class Node {
public int val;
public List<Node> neighbors;
}
S Naga Charan
class Node {
public int val;
public List<Node> neighbors;
}