title: Check If String Remains Palindrome After Removing Given Number Of Characters
signature: function checkIfStringRemainsPalindromeAfterRemovingGivenNumberOfCharacters(str, n) {
test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value) {
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual, expected){
      return convertToString(actual)===convertToString(expected);
  }
  
  function driver(str, n, expected){
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(str, n),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver("ZCoQhuM", 2, true);
    console.log(`TEST-0...${result}`);
  
    result = driver("7437725", 53, false);
    console.log(`TEST-1...${result}`);
  
    result = driver("11", 30, false);
    console.log(`TEST-2...${result}`);
  
    result = driver("buGlvR", 1, true);
    console.log(`TEST-3...${result}`);
  
    result = driver("9", 92, false);
    console.log(`TEST-4...${result}`);
  
    result = driver("101101010110", 3, true);
    console.log(`TEST-5...${result}`);
  
    result = driver("YguiM", 18, false);
    console.log(`TEST-6...${result}`);
  
    result = driver("8198", 90, false);
    console.log(`TEST-7...${result}`);
  
    result = driver("11101", 71, false);
    console.log(`TEST-8...${result}`);
  
    result = driver("hUInqJXNdbfP", 4, true);
    console.log(`TEST-9...${result}`);
  
    process.exit(0);
  };
  
  if (require.main === module) {
    main();
  }
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;
  }