Function to print count of nodes from all lower levels having values less than the the nodes in the current level
static void printNodes ( Node root ) { List < int > levelMin = new List < int > ( ) ; calculateMin ( root , levelMin ) ;