Feedback for CS2023_STK problem

Learning course: Arrays using Java
Problem Link: CodeChef: Practical coding for everyone

Feedback

/* package codechef; // don’t place package name! */

import java.util.;
import java.lang.
;
import java.io.*;

/* Name of the class has to be “Main” only if the class is public. */
class Codechef
{
public static void main (String args) throws java.lang.Exception
{
// your code goes here
Scanner scan =new Scanner(System.in);
int test=scan.nextInt();
for(int t=0;t<test;t++)
{
int n=scan.nextInt();
int a=new int[n];
int b=new int[n];
for(int i=0;i<=a.length-1;i++)
{
a[i]=scan.nextInt();
}
for(int i=0;i<=b.length-1;i++)
{
b[i]=scan.nextInt();
}
int count=0;
int max=0;
for(int i=0;i<=a.length-1;i++)
{
if(a[i]!=0)
{
count++;
}
else
{
if(count>max)
{
max=count;
}
}
}
int count1=0,max1=0;
for(int i=0;i<=b.length-1;i++)
{
if(b[i]!=0)
{
count1++;
}
else
{
if(count1>max1)
{
max1=count1;
}
}
}
if(max>max1)
{
System.out.println(“om”);
}
else if(max==max1)
{
System.out.println(“Draw”);
}
else
{
System.out.println(“addy”);
}

	}
		
		
	
		
	}
}