Get Mystery Box with random crypto!

public static String solve(int[]arr,int a){ int temp=0 | Sidtech

public static String solve(int[]arr,int a){
int temp=0;
int count=0;
for(int i=0;i if(arr[i]>2){
temp+=arr[i]-2;
}else if(arr[i]==1){
count++;
}
}
if(count==0){
return (temp&1) ==1 ? "chef":"chefina";
}
if(count==1){
return (temp&1) ==0 ? "chef":"chefina";
}
temp=temp%2;
for(int i=0;i if(arr[i]>1){
temp++;
}
}
return (temp&1) ==1 ? "chef":"chefina";
}