function to find the sum of nodes at maximum depth arguments are node and max , where max is to match the depth of node at every call to node , if max will be equal to 1 , means we are at deepest node .
public static int sumMaxLevelRec ( Node node , int max ) {