title: Count Characters Position English Alphabets
signature: function count_characters_position_english_alphabets(str)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(str, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(str), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver("lLkhFeZGcb", 0);
      @printf("TEST-0...%s\n",result);
      
      result = driver("ABcED", 3);
      @printf("TEST-1...%s\n",result);
      
      result = driver("geeksforgeeks", 1);
      @printf("TEST-2...%s\n",result);
      
      result = driver("Alphabetical", 3);
      @printf("TEST-3...%s\n",result);
      
      result = driver("abababab", 2);
      @printf("TEST-4...%s\n",result);
      
      result = driver("bcdefgxyz", 0);
      @printf("TEST-5...%s\n",result);
      
      result = driver("cBzaqx L", 1);
      @printf("TEST-6...%s\n",result);
      
      result = driver(" bcd", 3);
      @printf("TEST-7...%s\n",result);
      
      result = driver("11", 0);
      @printf("TEST-8...%s\n",result);
      
      result = driver("MqqKY", 0);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
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;
  }