title: Check Given String Rotation Palindrome
signature: function check_given_string_rotation_palindrome(string_arg0)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(string_arg0, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(string_arg0), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver("aadaa", true);
      @printf("TEST-0...%s\n",result);
      
      result = driver("2674377254", false);
      @printf("TEST-1...%s\n",result);
      
      result = driver("11", true);
      @printf("TEST-2...%s\n",result);
      
      result = driver("0011000", false);
      @printf("TEST-3...%s\n",result);
      
      result = driver("26382426486138", false);
      @printf("TEST-4...%s\n",result);
      
      result = driver("111010111010", false);
      @printf("TEST-5...%s\n",result);
      
      result = driver("abccba", true);
      @printf("TEST-6...%s\n",result);
      
      result = driver("5191", false);
      @printf("TEST-7...%s\n",result);
      
      result = driver("1110101101", false);
      @printf("TEST-8...%s\n",result);
      
      result = driver("abcdecbe", false);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
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;
  }