title: Minimum Characters Added Front Make String Palindrome
signature: minimum_characters_added_front_make_string_palindrome <- function(s) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(s, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(s), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          "aadaa", 
          TRUE
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          "2674377254", 
          FALSE
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          "11", 
          TRUE
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          "0011000 ", 
          FALSE
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          "26382426486138", 
          FALSE
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          "111010111010", 
          FALSE
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          "abccba", 
          TRUE
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          "5191", 
          FALSE
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          "1110101101", 
          FALSE
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          "abcdecbe", 
          FALSE
      )))
  
  }
  
  main()
source_py: def minimum_characters_added_front_make_string_palindrome(s):
      l = len(s)
      i = 0
      j = (l - 1)
      while (i <= j):
          if (s[i] != s[j]):
              return False
          i += 1
          j -= 1
      return True
source_cpp: bool minimum_characters_added_front_make_string_palindrome(string s) {
    int l = s . length ( );
    int j;
    for ( int i = 0, j = l - 1;
    i <= j;
    i ++, j -- ) {
      if ( s [ i ] != s [ j ] ) return false;
    }
    return true;
  }