title: Minimum Rotations Required Get String
signature: minimumRotationsRequiredGetString :: String -> Integer
  minimumRotationsRequiredGetString str = 
test_code: import Text.Printf
  import Control.Exception (catch, SomeException)
  import Data.Typeable
  import qualified Data.List as List
  import qualified Data.Map as Map
  import qualified Data.Set as Set
  
  -- SOLUTION CODE
  -- ============================================
  
  PLACEHOLDER_CODE_BODY
  
  -- TESTING CODE 
  -- ============================================
  validateSolution :: Integer -> Integer -> Bool
  validateSolution actual expected = do
      actual == expected
  
  
  driver :: String -> Integer -> String
  driver str expected = do
      if (validateSolution (PLACEHOLDER_FN_NAME str) expected)
          then "PASSED"
      else "FAILED"
  
  main = do
      printf "TEST-0...%s\n" (driver ("vdevdNdQSopPtj") (14) )
  
      printf "TEST-1...%s\n" (driver ("5") (1) )
  
      printf "TEST-2...%s\n" (driver ("100010101011") (12) )
  
      printf "TEST-3...%s\n" (driver ("tlDOvJHAyMllu") (13) )
  
      printf "TEST-4...%s\n" (driver ("06") (2) )
  
      printf "TEST-5...%s\n" (driver ("101") (3) )
  
      printf "TEST-6...%s\n" (driver ("DYgtU") (5) )
  
      printf "TEST-7...%s\n" (driver ("4") (1) )
  
      printf "TEST-8...%s\n" (driver ("00") (2) )
  
      printf "TEST-9...%s\n" (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;
  }