title: Minimum Rotations Required Get String
signature: function minimum_rotations_required_get_string(str)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(str, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(str), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver("vdevdNdQSopPtj", 14);
      @printf("TEST-0...%s\n",result);
      
      result = driver("5", 1);
      @printf("TEST-1...%s\n",result);
      
      result = driver("100010101011", 12);
      @printf("TEST-2...%s\n",result);
      
      result = driver("tlDOvJHAyMllu", 13);
      @printf("TEST-3...%s\n",result);
      
      result = driver("06", 2);
      @printf("TEST-4...%s\n",result);
      
      result = driver("101", 3);
      @printf("TEST-5...%s\n",result);
      
      result = driver("DYgtU", 5);
      @printf("TEST-6...%s\n",result);
      
      result = driver("4", 1);
      @printf("TEST-7...%s\n",result);
      
      result = driver("00", 2);
      @printf("TEST-8...%s\n",result);
      
      result = driver("Dt", 2);
      @printf("TEST-9...%s\n",result);
      
  end
  
  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;
  }