Pregunta de entrevista de Yelp

Leetcode intersection of two arrays with a small twist.