title: Check If String Remains Palindrome After Removing Given Number Of Characters
signature: pub fn check_if_string_remains_palindrome_after_removing_given_number_of_characters(str: String, n: i32) -> bool {
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: bool, expected: bool)->bool{
  return actual==expected
  }
  pub fn driver(str: String, n: i32, expected: bool)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(str, n), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        "ZCoQhuM".to_string(), 2, 
        true
      ));
      
      println!("TEST-1...{}", driver(
        "7437725".to_string(), 53, 
        false
      ));
      
      println!("TEST-2...{}", driver(
        "11".to_string(), 30, 
        false
      ));
      
      println!("TEST-3...{}", driver(
        "buGlvR".to_string(), 1, 
        true
      ));
      
      println!("TEST-4...{}", driver(
        "9".to_string(), 92, 
        false
      ));
      
      println!("TEST-5...{}", driver(
        "101101010110".to_string(), 3, 
        true
      ));
      
      println!("TEST-6...{}", driver(
        "YguiM".to_string(), 18, 
        false
      ));
      
      println!("TEST-7...{}", driver(
        "8198".to_string(), 90, 
        false
      ));
      
      println!("TEST-8...{}", driver(
        "11101".to_string(), 71, 
        false
      ));
      
      println!("TEST-9...{}", driver(
        "hUInqJXNdbfP".to_string(), 4, 
        true
      ));
      
  }
source_py: def check_if_string_remains_palindrome_after_removing_given_number_of_characters(str, n):
      l = len(str)
      if (l >= n):
          return True
      return False
source_cpp: bool check_if_string_remains_palindrome_after_removing_given_number_of_characters(string str, int n) {
    int len = str . length ( );
    if ( len >= n ) return true;
    return false;
  }