Pexlify interview question

Given two arrays find common elements.