Nakisa interview question

How to compare objects?