Вывод вроде верный, все байты, которые повторяются не более одного раза, выводит в консоль. Подскажите, пожалуйста, что от меня хочет валидатор?
package com.javarush.task.task18.task1804;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/*
Самые редкие байты
*/

public class Solution {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        FileInputStream fileInputStream = new FileInputStream(reader.readLine());
        ArrayList<Integer> list = new ArrayList<>();
        HashMap<Integer, Integer> minimalBytes = new HashMap<>();
        while (fileInputStream.available() > 0) {
            int data = fileInputStream.read();
            list.add(data);
        }
        Collections.sort(list);
        System.out.println(list);

        for (int i = 0; i < list.size(); i++) {
            int frequency = 0;
            for (int j = 0; j < list.size() - 1; j++) {
                if (list.get(i).equals(list.get(j + 1))) {
                    frequency++;
                }
            }
            if (frequency < 2) minimalBytes.put(list.get(i), frequency);
        }
            int countMinMap = 0;
            for (Map.Entry<Integer, Integer> n : minimalBytes.entrySet()) {
                if (n.getValue() < countMinMap) {
                    countMinMap = n.getValue();
                }

            }
            for (Map.Entry<Integer, Integer> n : minimalBytes.entrySet()) {
                if (n.getValue() == countMinMap) {
                    System.out.print(n.getKey() + " ");
                }
            }
            fileInputStream.close();
        }

    }