title: Count Characters Position English Alphabets
signature: countCharactersPositionEnglishAlphabets(str) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(str, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(str), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          "lLkhFeZGcb", 
          0)
      }");
  
      print("TEST-1...${driver(
          "ABcED", 
          3)
      }");
  
      print("TEST-2...${driver(
          "geeksforgeeks", 
          1)
      }");
  
      print("TEST-3...${driver(
          "Alphabetical", 
          3)
      }");
  
      print("TEST-4...${driver(
          "abababab", 
          2)
      }");
  
      print("TEST-5...${driver(
          "bcdefgxyz", 
          0)
      }");
  
      print("TEST-6...${driver(
          "cBzaqx L", 
          1)
      }");
  
      print("TEST-7...${driver(
          " bcd", 
          3)
      }");
  
      print("TEST-8...${driver(
          "11", 
          0)
      }");
  
      print("TEST-9...${driver(
          "MqqKY", 
          0)
      }");
  
      return 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;
  }