Pergunta de entrevista da empresa Yelp

Leetcode intersection of two arrays with a small twist.