title: Minimum Rotations Required Get String
signature: pub fn minimum_rotations_required_get_string(str: String) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(str: String, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(str), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        "vdevdNdQSopPtj".to_string(), 
        14
      ));
      
      println!("TEST-1...{}", driver(
        "5".to_string(), 
        1
      ));
      
      println!("TEST-2...{}", driver(
        "100010101011".to_string(), 
        12
      ));
      
      println!("TEST-3...{}", driver(
        "tlDOvJHAyMllu".to_string(), 
        13
      ));
      
      println!("TEST-4...{}", driver(
        "06".to_string(), 
        2
      ));
      
      println!("TEST-5...{}", driver(
        "101".to_string(), 
        3
      ));
      
      println!("TEST-6...{}", driver(
        "DYgtU".to_string(), 
        5
      ));
      
      println!("TEST-7...{}", driver(
        "4".to_string(), 
        1
      ));
      
      println!("TEST-8...{}", driver(
        "00".to_string(), 
        2
      ));
      
      println!("TEST-9...{}", driver(
        "Dt".to_string(), 
        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;
  }