title: Minimum Rotations Required Get String
signature: def minimumRotationsRequiredGetString(str: String) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(str: String, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(str),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        "vdevdNdQSopPtj", 
        14    
      )}")   
  
  
      println(s"TEST-1...${driver(
        "5", 
        1    
      )}")   
  
  
      println(s"TEST-2...${driver(
        "100010101011", 
        12    
      )}")   
  
  
      println(s"TEST-3...${driver(
        "tlDOvJHAyMllu", 
        13    
      )}")   
  
  
      println(s"TEST-4...${driver(
        "06", 
        2    
      )}")   
  
  
      println(s"TEST-5...${driver(
        "101", 
        3    
      )}")   
  
  
      println(s"TEST-6...${driver(
        "DYgtU", 
        5    
      )}")   
  
  
      println(s"TEST-7...${driver(
        "4", 
        1    
      )}")   
  
  
      println(s"TEST-8...${driver(
        "00", 
        2    
      )}")   
  
  
      println(s"TEST-9...${driver(
        "Dt", 
        2    
      )}")   
  
  }
  
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;
  }