Dino Systems interview question

write a function to find an intersection in arrays