import java.io.*; import java.util.*; public class Solution { private static int min,max; private static void findMinMax(ArrayList al){ min = al.get(0); max = al.get(0); for(Integer i: al) { if(i < min) min = i; if(i > max) max = i; } } public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner in = new Scanner(System.in); int Q = in.nextInt(); for(int i =0;i X = new ArrayList(); ArrayList Y = new ArrayList(); for(int j = 0;j