Amazon interview question

Find the first duplicate item in a list