Nakisa Interview Question

How to compare objects?