Pergunta de entrevista da empresa Bloomberg

Find the intersection of lists. Repetition is allowed. Order is not considered.