public static void main ( String args [ ] ) {
  Node root = getNode ( 0 ) ;
  root . left = getNode ( 1 ) ;
  root . left . left = getNode ( 3 ) ;
  root . left . left . left = getNode ( 7 ) ;
  root . left . right = getNode ( 4 ) ;
  root . left . right . left = getNode ( 8 ) ;
  root . left . right . right = getNode ( 9 ) ;
  root . right = getNode ( 2 ) ;
  root . right . left = getNode ( 5 ) ;
  root . right . right = getNode ( 6 ) ;
  int XOR = 0 ;
  Map < Integer , Integer > mp = new HashMap < Integer , Integer > ( ) ;
  int node1 = 3 ;
  int node2 = 5 ;
  storePath ( root , mp , XOR ) ;
  System . out . println ( findXORPath ( mp , node1 , node2 ) ) ;
}

public static void main ( String args [ ] ) { Node root = getNode ( 0 ) ; root . left = getNode ( 1 ) ; root . left . left = getNode ( 3 ) ; root . left . left . left = getNode ( 7 ) ; root . left . right = getNode ( 4 ) ; root . left . right . left = getNode ( 8 ) ; root . left . right . right = getNode ( 9 ) ; root . right = getNode ( 2 ) ; root . right . left = getNode ( 5 ) ; root . right . right = getNode ( 6 ) ; int XOR = 0 ; Map < Integer , Integer > mp = new HashMap < Integer , Integer > ( ) ; int node1 = 3 ; int node2 = 5 ; storePath ( root , mp , XOR ) ; System . out . println ( findXORPath ( mp , node1 , node2 ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (identifier) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (expression_statement (assignment_expression left: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier) (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments (type_identifier) (type_identifier))) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))))))