Amazon Interview Question

How would you go comparing two sets of objects