Pregunta de entrevista de Deliveroo

a long exercise about array intersection