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]);
}
}
}