Amazon Interview Question

Write a code to get intersection of two arrays