A Binary Tree node
public class Node { public int data ; public Node left , right ; public Node ( int item ) { data = item ; left = right = null ; } } public class Index { public int index = 0 ; } class GFG { public Node root ; public Index myindex = new Index ( ) ;