1427. Perform String Shifts
ArrayMathString
Hints
Hint 1
Intuitively performing all shift operations is acceptable due to the constraints.
Hint 2
You may notice that left shift cancels the right shift, so count the total left shift times (may be negative if the final result is right shift), and perform it once.
Preparing judge…