title: Program Count Occurrence Given Character String
signature: pub fn program_count_occurrence_given_character_string(s: String, c: char) -> 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(s: String, c: char, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(s, c), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        "mhjnKfd".to_string(), 'l', 
        0
      ));
      
      println!("TEST-1...{}", driver(
        "716662107".to_string(), '6', 
        3
      ));
      
      println!("TEST-2...{}", driver(
        "01".to_string(), '1', 
        1
      ));
      
      println!("TEST-3...{}", driver(
        "wPHSxIbnHakGRO".to_string(), 'n', 
        1
      ));
      
      println!("TEST-4...{}", driver(
        "721106".to_string(), '8', 
        0
      ));
      
      println!("TEST-5...{}", driver(
        "111".to_string(), '0', 
        0
      ));
      
      println!("TEST-6...{}", driver(
        "TIBFU".to_string(), 'Q', 
        0
      ));
      
      println!("TEST-7...{}", driver(
        "0".to_string(), '3', 
        0
      ));
      
      println!("TEST-8...{}", driver(
        "10".to_string(), '0', 
        1
      ));
      
      println!("TEST-9...{}", driver(
        "lqq".to_string(), '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;
  }