Domanda di colloquio di Swrve

Given two arrays get common elements and return them in an array.