EPAM Systems Interview Question

search and count the mentioned character in an array, filter the array based on an object using Java 8 features