import java.util.*; public class Solution { //两次反转 public String trans(String s, int n) { if(s == null || s.length() == 0)&...