What is the possible error in this code?

import java.util.*;

class main

{

public static void main(String arr[])throws Exception

{

    Scanner sc=new Scanner(System.in);

     int T=sc.nextInt();

     int i,j;

       int n,k;

    String s[]=new String[T];

     for(i=0;i<T;i++)
    {

      n=sc.nextInt();

      k=sc.nextInt();

      if(k<=n)

     {

         int a[]=new int[n];

          int temp=0;

         boolean e=false;

        for(j=0;j<n;j++)

       {

                a[j]=sc.nextInt();

         }//end of for loop

       j=0;

     while(j<=(n-k))

       {

          for(temp=j;temp<j+k;temp++)

          {

           if((a[temp]%2)==0)

              {

                e=true;

              }

             else

          {
           e=false;

           break;

           }

      }//end of for loop

      if(e==true)

       break;

       else

       j++;

   }//end of while 

     if(e==true)

       s[i]="YES";

      else

     s[i]="NO";

  }//end of if

   else

   break;

}//end of for loop

for(i=0;i<T;i++)

System.out.println(s[i]);

}//end of main function

}//end of main class

question link??

syntax wise there is no error

August Contest Problem 1

//