Apple Interview Question

How do you find common elements between the arrays? reduce the complexity, asked me to write the code