Amazon interview question

How would you go comparing two sets of objects