Pergunta de entrevista da empresa EPAM Systems

String grouping of its frequency using stream api