/* ###### ###### ##### ###### ###### ##### # # # # # # # # # # # # # # # # # ## # # ## # # # # # # # # # # # # # ###### # # # # # # # # # # */ import java.util.*; import java.io.*; class constructingNumber { public static void main(String args[] ) throws Exception { FastReader scan=new FastReader(); PrintStream p = System.out; //p.println(); boolean b1 = false,b2=false; int t = scan.nextInt(); while(t-->0){ int n = scan.nextInt(); int []arr = new int[n]; for(int i=0;i