static void storePath ( Node root , Map < Integer , Integer > mp , int XOR ) {
  if ( root == null ) return ;
  mp . put ( root . data , XOR ^ root . data ) ;
  XOR ^= root . data ;
  if ( root . left != null ) storePath ( root . left , mp , XOR ) ;
  if ( root . right != null ) storePath ( root . right , mp , XOR ) ;
}

static void storePath ( Node root , Map < Integer , Integer > mp , int XOR ) { if ( root == null ) return ; mp . put ( root . data , XOR ^ root . data ) ; XOR ^= root . data ; if ( root . left != null ) storePath ( root . left , mp , XOR ) ; if ( root . right != null ) storePath ( root . right , mp , XOR ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (generic_type (type_identifier) (type_arguments (type_identifier) (type_identifier))) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (return_statement)) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (field_access object: (identifier) field: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (null_literal))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (null_literal))) consequence: (expression_statement (method_invocation name: (identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)) (identifier) (identifier)))))))