please give me a test case not running on this code!!
import java.util.*;
class RAINBOWA
{
static boolean gadbad(int arr[])
{
for(int h=0;h<arr.length;h++)
{
if(arr[h]!=1&&arr[h]!=2&&arr[h]!=3&&arr[h]!=4&&arr[h]!=5&&arr[h]!=6&&arr[h]!=7)
{return true;}
}
return false;
}
public static void main(String args[])
{
Scanner scan=new Scanner(System.in);
int t=scan.nextInt();
for(int i=0;i<t;i++)
{
int f=0,flag=0,x=0,y=0,counter=0;
int n=scan.nextInt();
int j=0,k=n-1;
int[] a=new int[n];
while(scan.hasNext())
{
a[f]=scan.nextInt();
f++;
if(f==n){f=1;break;}
}
if(n%2==0){x=(n-1)/2;y=(n-1)/2+1;}
else{x=(n-1)/2+1;y=(n-1)/2+1;}
if(gadbad(a)){flag=1;}
else
{
while(flag==0&&(j<=x&&k>=y&&f<=7))
{
if(a[j]==f&&a[k]==f){counter++;j++;k--;}
else
{
if(counter<1){flag=1;}
else{f++;counter=0;}
}
//System.out.println(j+","+k);
}
if(f!=7){flag=1;}
}
if(flag==0){System.out.println("yes");}
else{System.out.println("no");}
}
}
}