The verification didn't like my solution here, even though it is almost line-for-line the exact same code as the solution code. Anyone have any ideas?
package en.codegym.task.jdk13.task07.task0706;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/*
Street and houses
*/

public class Solution {

    public static int[] arr = new int[15];
    public static int oddCount = 0;
    public static int evenCount = 0;

    public static void main(String[] args) throws IOException {
        //write your code here
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        for (int i = 0; i < arr.length; i++) {
            arr[i] = Integer.parseInt(reader.readLine());
        }

        for (int i = 0; i < arr.length; i++) {
            if (i % 2 == 0) {
                evenCount += arr[i];
            } else {
                oddCount += arr[i];
            }
        }

        if (evenCount > oddCount) {
            System.out.println("Even-numbered houses have more residents.");
        } else {
            System.out.println("Odd-numbered houses have more residents.");
        }
    }
}