private static int findAnswer ( int n , int [ ] a ) {
  int res = 0 ;
  for ( int bit = 0 ;
  bit <= 25 ;
  bit ++ ) {
    if ( findBit ( n , a , bit ) > 0 ) {
      res += ( 1 << bit ) ;
    }
  }
  return res ;
}

private static int findAnswer ( int n , int [ ] a ) { int res = 0 ; for ( int bit = 0 ; bit <= 25 ; bit ++ ) { if ( findBit ( n , a , bit ) > 0 ) { res += ( 1 << bit ) ; } } return res ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier))))))))) (return_statement (identifier))))