Barclays interview question

Something about hash and equals of objects (java)