Bloomberg interview question

find the same element in two arrays