Amazon interview question

Write a code to get intersection of two arrays