Robinhood interview question

common elements in 2 lists