Creating a Node class
class Node { int soln [ ] ; int level ; ArrayList < Node > child ; Node parent ; Node ( Node parent , int level , int N ) { this . parent = parent ; this . level = level ; this . soln = new int [ N ] ; } } class GFG { static int N ;