title: Check If String Remains Palindrome After Removing Given Number Of Characters
signature: func checkIfStringRemainsPalindromeAfterRemovingGivenNumberOfCharacters(str string, n int) bool {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual bool, expected bool) bool {
      return reflect.DeepEqual(actual,expected)
  }
  
  func driver(str string, n int, expected bool) string {
      if validateSolution(PLACEHOLDER_FN_NAME(str, n),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver("ZCoQhuM", 
  	2, true)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver("7437725", 
  	53, false)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver("11", 
  	30, false)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver("buGlvR", 
  	1, true)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver("9", 
  	92, false)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver("101101010110", 
  	3, true)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver("YguiM", 
  	18, false)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver("8198", 
  	90, false)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver("11101", 
  	71, false)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver("hUInqJXNdbfP", 
  	4, true)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
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;
  }