package leetcode; public class Q189_RotateArray { private static void reversal(int[] nums, int i, int j){ while(i