Валидатор отказывается принимать решение. Думаю, что автотест не может понять использование HashMap
BufferedReader reader = null;
FileInputStream fis = null;

try {
    reader = new BufferedReader(new InputStreamReader(System.in));
    String filePath = reader.readLine();

    fis = new FileInputStream(filePath);

    // найти наиболее повтаряющиеся байты
    HashMap<Integer, Integer> statistics = new HashMap<Integer, Integer>(); // храним статистику по частоте символов

    while (fis.available() > 0){ // создаем статистику вхождения символов
        int unit = fis.read();
        if (statistics.containsKey(unit))
            statistics.put(unit, statistics.get(unit) + 1);
        else
            statistics.put(unit, 1);
    }


    int maxValueInMap = Collections.max(statistics.values()); // получаем максимальное количество вхождений

    for (HashMap.Entry<Integer, Integer> entry : statistics.entrySet()){
        if (entry.getValue() == maxValueInMap)
            System.out.print(entry.getKey() + " ");
    }
}finally {
    reader.close();
    fis.close(); // закрываем поток
}