title: Minimum Rotations Required Get String
signature: fun minimumRotationsRequiredGetString(str: String): Int {
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;
  }
question_info.test_list: [{"idx": 0, "outputs": 14, "inputs": {"str": "vdevdNdQSopPtj"}}, {"idx": 1, "outputs": 1, "inputs": {"str": "5"}}, {"idx": 2, "outputs": 12, "inputs": {"str": "100010101011"}}, {"idx": 3, "outputs": 13, "inputs": {"str": "tlDOvJHAyMllu"}}, {"idx": 4, "outputs": 2, "inputs": {"str": "06"}}, {"idx": 5, "outputs": 3, "inputs": {"str": "101"}}, {"idx": 6, "outputs": 5, "inputs": {"str": "DYgtU"}}, {"idx": 7, "outputs": 1, "inputs": {"str": "4"}}, {"idx": 8, "outputs": 2, "inputs": {"str": "00"}}, {"idx": 9, "outputs": 2, "inputs": {"str": "Dt"}}]
question_info.extension: kts
question_info.test_code: package main
  
  import kotlin.text.*
  import kotlin.math.*
  
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  fun validateSolution(actual:Int, expected:Int):Boolean{
    return actual.equals(expected)
  }
  fun driver(str: String, expected:Int):String {
      try{
        if (validateSolution(PLACEHOLDER_FN_NAME(str), expected)) {
                return "PASSED"
        }
        return "FAILED"
      } catch (e: Exception){
        return e::class.simpleName as String
      }
  
  }
  
  fun main() {
      var result: String = ""
      result = driver("vdevdNdQSopPtj", 14)
      println("TEST-0...${result}")
      
      result = driver("5", 1)
      println("TEST-1...${result}")
      
      result = driver("100010101011", 12)
      println("TEST-2...${result}")
      
      result = driver("tlDOvJHAyMllu", 13)
      println("TEST-3...${result}")
      
      result = driver("06", 2)
      println("TEST-4...${result}")
      
      result = driver("101", 3)
      println("TEST-5...${result}")
      
      result = driver("DYgtU", 5)
      println("TEST-6...${result}")
      
      result = driver("4", 1)
      println("TEST-7...${result}")
      
      result = driver("00", 2)
      println("TEST-8...${result}")
      
      result = driver("Dt", 2)
      println("TEST-9...${result}")
      
          
  }
  
  main()
question_info.entry_fn_name: minimumRotationsRequiredGetString
question_info.entry_cls_name: Solution
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: kotlinc -script __FILENAME__ -no-reflect -nowarn