title: Minimum Characters Added Front Make String Palindrome
signature: function minimumCharactersAddedFrontMakeStringPalindrome($s) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($s, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($s), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        "aadaa", 
        true));
      
      printf("TEST-1...%s\n",driver(
        "2674377254", 
        false));
      
      printf("TEST-2...%s\n",driver(
        "11", 
        true));
      
      printf("TEST-3...%s\n",driver(
        "0011000 ", 
        false));
      
      printf("TEST-4...%s\n",driver(
        "26382426486138", 
        false));
      
      printf("TEST-5...%s\n",driver(
        "111010111010", 
        false));
      
      printf("TEST-6...%s\n",driver(
        "abccba", 
        true));
      
      printf("TEST-7...%s\n",driver(
        "5191", 
        false));
      
      printf("TEST-8...%s\n",driver(
        "1110101101", 
        false));
      
      printf("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;
  }