title: Program Count Occurrence Given Character String
signature: def programCountOccurrenceGivenCharacterString(s: String, c: Char) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(s: String, c: Char, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(s, c),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        "mhjnKfd", 'l', 
        0    
      )}")   
  
  
      println(s"TEST-1...${driver(
        "716662107", '6', 
        3    
      )}")   
  
  
      println(s"TEST-2...${driver(
        "01", '1', 
        1    
      )}")   
  
  
      println(s"TEST-3...${driver(
        "wPHSxIbnHakGRO", 'n', 
        1    
      )}")   
  
  
      println(s"TEST-4...${driver(
        "721106", '8', 
        0    
      )}")   
  
  
      println(s"TEST-5...${driver(
        "111", '0', 
        0    
      )}")   
  
  
      println(s"TEST-6...${driver(
        "TIBFU", 'Q', 
        0    
      )}")   
  
  
      println(s"TEST-7...${driver(
        "0", '3', 
        0    
      )}")   
  
  
      println(s"TEST-8...${driver(
        "10", '0', 
        1    
      )}")   
  
  
      println(s"TEST-9...${driver(
        "lqq", 'd', 
        0    
      )}")   
  
  }
  
source_py: def program_count_occurrence_given_character_string(s, c):
      res = 0
      for i in range(len(s)):
          if (s[i] == c):
              res = (res + 1)
      return res
source_cpp: int program_count_occurrence_given_character_string(string s, char c) {
    int res = 0;
    for ( int i = 0;
    i < s . length ( );
    i ++ ) if ( s [ i ] == c ) res ++;
    return res;
  }