Pergunta de entrevista da empresa Amazon

Write a code to get intersection of two arrays