root - root of the binary tree d - distance of current line from rightmost - topmost slope . diagonalPrint - HashMap to store Diagonal elements ( Passed by Reference )
static void diagonalPrintUtil ( Node root , int d , HashMap < Integer , Vector < Integer > > diagonalPrint ) {