Pergunta de entrevista da empresa Booz Allen Hamilton

Write a function to print out the elements in common of two arrays.