Unable to submit challenge

I have tried to submit the code but it says that the testcase answer is wrong not able to figure out please help
Here is my code
import java.util.*;

public class Main{

static Scanner scn = new Scanner(System.in);

public static void OddEven(int n){
    int ans=0;while(n!= 0){
        int rem = n%10;
        ans = ans + rem;
        n=n/10;

    }

    if((ans%3==0)||(ans%4==0)){
        System.out.println("Yes");

    }
    else
    System.out.println("No");
}
public static void main(String[] args){
    
    
    int n = scn.nextInt();

    int[] arr = new int[n];
    for(int i=0;i<arr.length;i++){
        arr[i] = scn.nextInt();
    }

    for(int i=0;i<arr.length;i++){
        OddEven(arr[i]);
    }

    
    
}

}

the link for the code is https://ide.codingblocks.com/s/74672

HI @kushaggarwal

Your code doesn’t work for the case 00001. The output should be yes in this case whereas your code gives 0.

ok thank you very much for your help will look fr the flaw in the code

here the sum is 1 which is not divisible by 3 or 4 hence it should be no And also I am not able to exit from collaborate mode please help

Hi @kushaggarwal
You need to calculate the sum of the digits which are even and if the sum is divisible by 4, you need to print Yes.
Here 0 is an even number and hence after adding the sum of all even digits, the sum comes out to be 0 which is divisible by 4. Hence the output is Yes.