Siemens interview question

Algorithm to find common elements in two arrays