Pergunta de entrevista da empresa Siemens

Algorithm to find common elements in two arrays