import java.util.*; class Solution { public int[] solution(int n, int[] slicer, int[] num_list) { int a = slicer[0]; int b = slicer[1]; int c = slicer[2]; if (n == 1) return Arrays.copyOfRange(num_list, 0, b + 1); if (n == 2) return Arrays.copyOfRange(num_list, a, num_list.length); if (n == 3) return Arrays.copyOfRange(num_list, a, b + 1); if (n == 4) { List result = new ArrayList(); for (int i ..