Pergunta de entrevista da empresa Zalando

Find intersection of two arrays. Handle duplication as well