My issue
hi
My code
import java.util.*;
import java.lang.*;
import java.io.*;
class Codechef
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes; here
Scanner sc=new Scanner (System.in);
int s=sc.nextInt();
for(int i=0;i<s;i++)
{
int n=sc.nextInt();
int arr[]=new int [n];
for(int ar=0;ar<n;ar++)
{
arr[ar]=sc.nextInt();
}
int count=0;
for(int j=0;j<n/2 ;j++)
{
if((arr[j])!=arr[n-j-1])
{
System.out.println("no");
}
else
{
System.out.println("yes");
}
}
}
}
}
Problem Link: Temple Land Practice Coding Problem - CodeChef