title: Lexicographically Minimum String Rotation
signature: class Solution {
  
      public String lexicographicallyMinimumStringRotation(String str_) {
source_py: def lexicographically_minimum_string_rotation(str_):
      n = len(str_)
      arr = ([0] * n)
      concat = (str_ + str_)
      for i in range(n):
          arr[i] = concat[i:(n + i)]
      arr.sort()
      return arr[0]
source_cpp: string lexicographically_minimum_string_rotation(string str) {
    int n = str . length ( );
    string arr [ n ];
    string concat = str + str;
    for ( int i = 0;
    i < n;
    i ++ ) arr [ i ] = concat . substr ( i, n );
    sort ( arr, arr + n );
    return arr [ 0 ];
  }
question_info.extension: java
question_info.entry_fn_name: lexicographicallyMinimumStringRotation
question_info.entry_cls_name: Solution
question_info.test_list: [{"idx": 0, "outputs": "EchlonW", "inputs": {"str_": "onWEchl"}}, {"idx": 1, "outputs": "2", "inputs": {"str_": "2"}}, {"idx": 2, "outputs": "001", "inputs": {"str_": "100"}}, {"idx": 3, "outputs": "AGHbCZ", "inputs": {"str_": "GHbCZA"}}, {"idx": 4, "outputs": "05505687982061", "inputs": {"str_": "50568798206105"}}, {"idx": 5, "outputs": "000100101111", "inputs": {"str_": "001011110001"}}, {"idx": 6, "outputs": "Yhznnyulljp", "inputs": {"str_": "lljpYhznnyu"}}, {"idx": 7, "outputs": "17599845449992", "inputs": {"str_": "54499921759984"}}, {"idx": 8, "outputs": "01111", "inputs": {"str_": "11101"}}, {"idx": 9, "outputs": "CYEjsyjwZqvypg", "inputs": {"str_": "qvypgCYEjsyjwZ"}}]
question_info.test_code: import static java.util.Map.entry;  
  import java.util.*;
  import java.lang.*;
  // TESTING CODE 
  // ============================================
  class QuestionEvaluator {
      public static String validateSolution(String str_, String expected){
          try{
              Driver driver = new Driver();
              if (driver.run(str_,expected)){
                  return "PASSED";
              }
              return "FAILED";
              
          } catch (Exception exception_obj){
              return exception_obj.getClass().getSimpleName();
          }
  
      }
      public static void main(String[] args) {
          String result;
          result = validateSolution("onWEchl", "EchlonW");
          System.out.println(String.format("%s%s","TEST-0...",result));    
      
          result = validateSolution("2", "2");
          System.out.println(String.format("%s%s","TEST-1...",result));    
      
          result = validateSolution("100", "001");
          System.out.println(String.format("%s%s","TEST-2...",result));    
      
          result = validateSolution("GHbCZA", "AGHbCZ");
          System.out.println(String.format("%s%s","TEST-3...",result));    
      
          result = validateSolution("50568798206105", "05505687982061");
          System.out.println(String.format("%s%s","TEST-4...",result));    
      
          result = validateSolution("001011110001", "000100101111");
          System.out.println(String.format("%s%s","TEST-5...",result));    
      
          result = validateSolution("lljpYhznnyu", "Yhznnyulljp");
          System.out.println(String.format("%s%s","TEST-6...",result));    
      
          result = validateSolution("54499921759984", "17599845449992");
          System.out.println(String.format("%s%s","TEST-7...",result));    
      
          result = validateSolution("11101", "01111");
          System.out.println(String.format("%s%s","TEST-8...",result));    
      
          result = validateSolution("qvypgCYEjsyjwZ", "CYEjsyjwZqvypg");
          System.out.println(String.format("%s%s","TEST-9...",result));    
      
      }
  }
  
  class Driver{
      public boolean run(String str_, String expected){
  
          PLACEHOLDER_CLS_NAME sol = new PLACEHOLDER_CLS_NAME();
          return validateSolution(sol.PLACEHOLDER_FN_NAME(str_),expected);
      }
      
      public boolean validateSolution(String actual, String expected){
          return actual.equals(expected);
      }
  }
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
question_info.test_case_ids: 0 1 2 3 4 5 6 7 8 9
question_info.commands: java __FILENAME__