import java.util.*; public class Solution { public String trans(String s, int n) { // write code here if (s == null || s.length() < 1 || n < 1) { return s; } char[] arr = s.toCharArray(); reverse(arr, 0, n - 1); List<Integer&g...