Amazon Lab126 interview question

Intersection of two arrays (...optimize it)