title: Count Characters Position English Alphabets
signature: pub fn count_characters_position_english_alphabets(str: String) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(str: String, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(str), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        "lLkhFeZGcb".to_string(), 
        0
      ));
      
      println!("TEST-1...{}", driver(
        "ABcED".to_string(), 
        3
      ));
      
      println!("TEST-2...{}", driver(
        "geeksforgeeks".to_string(), 
        1
      ));
      
      println!("TEST-3...{}", driver(
        "Alphabetical".to_string(), 
        3
      ));
      
      println!("TEST-4...{}", driver(
        "abababab".to_string(), 
        2
      ));
      
      println!("TEST-5...{}", driver(
        "bcdefgxyz".to_string(), 
        0
      ));
      
      println!("TEST-6...{}", driver(
        "cBzaqx L".to_string(), 
        1
      ));
      
      println!("TEST-7...{}", driver(
        " bcd".to_string(), 
        3
      ));
      
      println!("TEST-8...{}", driver(
        "11".to_string(), 
        0
      ));
      
      println!("TEST-9...{}", driver(
        "MqqKY".to_string(), 
        0
      ));
      
  }
source_py: def count_characters_position_english_alphabets(str):
      result = 0
      for i in range(len(str)):
          if ((i == (ord(str[i]) - ord('a'))) or (i == (ord(str[i]) - ord('A')))):
              result += 1
      return result
source_cpp: int count_characters_position_english_alphabets(string str) {
    int result = 0;
    for ( int i = 0;
    i < str . size ( );
    i ++ ) if ( i == ( str [ i ] - 'a' ) || i == ( str [ i ] - 'A' ) ) result ++;
    return result;
  }