Stradegi interview question

common elements in array