function to find the level having maximum number of Nodes
public static int maxNodeLevel ( Node root ) { if ( root == null ) { return - 1 ; } LinkedList < Node > q = new LinkedList < Node > ( ) ; q . AddLast ( root ) ;