Booz Allen Hamilton Interview Question

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