Microsoft interview question

Return same elements from two arrays as fast as you can.