Pergunta de entrevista da empresa Bloomberg

given two array, find out the same elements without sorting them