public static String solve(int[]arr,int a){ int temp=0; int count=0; for(int i=0;i2){ 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;i1){ temp++; } } return (temp&1) ==1 ? "chef":"chefina"; } 1 view05:39