Pergunta de entrevista da empresa Worldline

find the occurance of numbers in a list using Stream API