title: Minimum Rotations Required Get String
signature: class Solution {
  
      public Integer minimumRotationsRequiredGetString(String str) {
test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(String str, Integer expected){
          try{
              Driver driver = new Driver();
              if (driver.run(str,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution("vdevdNdQSopPtj", 14);
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution("5", 1);
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution("100010101011", 12);
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution("tlDOvJHAyMllu", 13);
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution("06", 2);
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution("101", 3);
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution("DYgtU", 5);
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution("4", 1);
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution("00", 2);
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution("Dt", 2);
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(String str, Integer expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(str),expected);
      }
      
      public boolean validateSolution(Integer actual, Integer expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
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;
  }