title: Minimum Rotations Required Get String
signature: function minimumRotationsRequiredGetString($str) {
test_code: <?php
  
  
  // SOLUTION CODE 
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  function validateSolution($actual, $expected){
      return serialize($actual) == serialize($expected);
  }
  
  function driver($str, $expected){
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME($str), $expected)){
          return "PASSED";
        }
        return "FAILED";
      }
      catch (Exception $exception_obj) {
        return get_class($exception_obj);
      }
  }
  
  function main(){
      printf("TEST-0...%s\n",driver(
        "vdevdNdQSopPtj", 
        14));
      
      printf("TEST-1...%s\n",driver(
        "5", 
        1));
      
      printf("TEST-2...%s\n",driver(
        "100010101011", 
        12));
      
      printf("TEST-3...%s\n",driver(
        "tlDOvJHAyMllu", 
        13));
      
      printf("TEST-4...%s\n",driver(
        "06", 
        2));
      
      printf("TEST-5...%s\n",driver(
        "101", 
        3));
      
      printf("TEST-6...%s\n",driver(
        "DYgtU", 
        5));
      
      printf("TEST-7...%s\n",driver(
        "4", 
        1));
      
      printf("TEST-8...%s\n",driver(
        "00", 
        2));
      
      printf("TEST-9...%s\n",driver(
        "Dt", 
        2));
      
  }
  
  main();
  ?>
source_py: def minimum_rotations_required_get_string(str):
      tmp = (str + str)
      n = len(str)
      for i in range(1, (n + 1)):
          substring = tmp[i:n]
          if (str == substring):
              return i
      return n
source_cpp: int minimum_rotations_required_get_string(string str) {
    string tmp = str + str;
    int n = str . length ( );
    for ( int i = 1;
    i <= n;
    i ++ ) {
      string substring = tmp . substr ( i, str . size ( ) );
      if ( str == substring ) return i;
    }
    return n;
  }