title: Check Given String Rotation Palindrome
signature: function checkGivenStringRotationPalindrome(string_arg0: string): boolean {
source_py: def check_given_string_rotation_palindrome(string):
      l = 0
      h = (len(string) - 1)
      while (h > l):
          l += 1
          h -= 1
          if (string[(l - 1)] != string[(h + 1)]):
              return False
      return True
source_cpp: bool check_given_string_rotation_palindrome(string str) {
    int l = 0;
    int h = str . length ( ) - 1;
    while ( h > l ) if ( str [ l ++ ] != str [ h -- ] ) return false;
    return true;
  }
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"string_arg0": "aadaa"}}, {"idx": 1, "outputs": false, "inputs": {"string_arg0": "2674377254"}}, {"idx": 2, "outputs": true, "inputs": {"string_arg0": "11"}}, {"idx": 3, "outputs": false, "inputs": {"string_arg0": "0011000"}}, {"idx": 4, "outputs": false, "inputs": {"string_arg0": "26382426486138"}}, {"idx": 5, "outputs": false, "inputs": {"string_arg0": "111010111010"}}, {"idx": 6, "outputs": true, "inputs": {"string_arg0": "abccba"}}, {"idx": 7, "outputs": false, "inputs": {"string_arg0": "5191"}}, {"idx": 8, "outputs": false, "inputs": {"string_arg0": "1110101101"}}, {"idx": 9, "outputs": false, "inputs": {"string_arg0": "abcdecbe"}}]
question_info.entry_cls_name: Solution
question_info.test_code: 
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function convertToString(value: any): string{
      return JSON.stringify(value, function (key, val) {
          if (val instanceof Set) {
              return Array.from(val);
          } return val;});
  }
  
  function validateSolution(actual: boolean, expected: boolean): boolean {
      return convertToString(actual) === convertToString(expected);
  }
  
  function driver(string_arg0: string, expected:boolean): string {
      try{
          if (validateSolution(PLACEHOLDER_FN_NAME(string_arg0),expected)){
              return "PASSED";
          }
          return "FAILED";
      } catch (error) {
        return error.name;
      }
      
  }
      
  function main(){
    let result = '';
    result = driver("aadaa", true);
    console.log(`TEST-0...${result}`);
  
    result = driver("2674377254", false);
    console.log(`TEST-1...${result}`);
  
    result = driver("11", true);
    console.log(`TEST-2...${result}`);
  
    result = driver("0011000", false);
    console.log(`TEST-3...${result}`);
  
    result = driver("26382426486138", false);
    console.log(`TEST-4...${result}`);
  
    result = driver("111010111010", false);
    console.log(`TEST-5...${result}`);
  
    result = driver("abccba", true);
    console.log(`TEST-6...${result}`);
  
    result = driver("5191", false);
    console.log(`TEST-7...${result}`);
  
    result = driver("1110101101", false);
    console.log(`TEST-8...${result}`);
  
    result = driver("abcdecbe", false);
    console.log(`TEST-9...${result}`);
  
  };
  
  main();
question_info.extension: ts
question_info.entry_fn_name: checkGivenStringRotationPalindrome
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: tsc --target es2020 --lib es5,dom,es2015,es2020 __FILENAME__
question_info.commands: node __FILENAME__.js