static int countDecoding ( char [ ] digits , int n ) {
  if ( n == 0 || n == 1 ) return 1 ;
  if ( digits [ 0 ] == '0' ) return 0 ;
  int count = 0 ;
  if ( digits [ n - 1 ] > '0' ) count = countDecoding ( digits , n - 1 ) ;
  if ( digits [ n - 2 ] == '1' || ( digits [ n - 2 ] == '2' && digits [ n - 1 ] < '7' ) ) count += countDecoding ( digits , n - 2 ) ;
  return count ;
}

static int countDecoding ( char [ ] digits , int n ) { if ( n == 0 || n == 1 ) return 1 ; if ( digits [ 0 ] == '0' ) return 0 ; int count = 0 ; if ( digits [ n - 1 ] > '0' ) count = countDecoding ( digits , n - 1 ) ; if ( digits [ n - 2 ] == '1' || ( digits [ n - 2 ] == '2' && digits [ n - 1 ] < '7' ) ) count += countDecoding ( digits , n - 2 ) ; return count ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (return_statement (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (character_literal))) consequence: (return_statement (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal)) right: (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal)))))) consequence: (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (return_statement (identifier))))