• + 0 comments
    public static List<Integer> matchingStrings(List<String> stringList, List<String> queries) {
        List<Integer> results = new ArrayList<>(); 
        for (String query: queries) {
            results.add(Collections.frequency(stringList, query));
        }
        return results; 
    }
    

    }