title: Minimum Rotations Required Get String
signature: minimumRotationsRequiredGetString(str) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(str, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(str), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          "vdevdNdQSopPtj", 
          14)
      }");
  
      print("TEST-1...${driver(
          "5", 
          1)
      }");
  
      print("TEST-2...${driver(
          "100010101011", 
          12)
      }");
  
      print("TEST-3...${driver(
          "tlDOvJHAyMllu", 
          13)
      }");
  
      print("TEST-4...${driver(
          "06", 
          2)
      }");
  
      print("TEST-5...${driver(
          "101", 
          3)
      }");
  
      print("TEST-6...${driver(
          "DYgtU", 
          5)
      }");
  
      print("TEST-7...${driver(
          "4", 
          1)
      }");
  
      print("TEST-8...${driver(
          "00", 
          2)
      }");
  
      print("TEST-9...${driver(
          "Dt", 
          2)
      }");
  
      return 0;
  }
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;
  }