Pregunta de entrevista de Pexlify

Given two arrays find common elements.