Citi interview question

override the equals method