title: Count Characters Position English Alphabets
signature: countCharactersPositionEnglishAlphabets :: String -> Integer
  countCharactersPositionEnglishAlphabets str = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Integer -> Integer -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: String -> Integer -> String
  driver str expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME str) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver ("lLkhFeZGcb") (0) )
  
      printf "TEST-1...%s\n" (driver ("ABcED") (3) )
  
      printf "TEST-2...%s\n" (driver ("geeksforgeeks") (1) )
  
      printf "TEST-3...%s\n" (driver ("Alphabetical") (3) )
  
      printf "TEST-4...%s\n" (driver ("abababab") (2) )
  
      printf "TEST-5...%s\n" (driver ("bcdefgxyz") (0) )
  
      printf "TEST-6...%s\n" (driver ("cBzaqx L") (1) )
  
      printf "TEST-7...%s\n" (driver (" bcd") (3) )
  
      printf "TEST-8...%s\n" (driver ("11") (0) )
  
      printf "TEST-9...%s\n" (driver ("MqqKY") (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;
  }