Pregunta de entrevista de Cognizant

How to override hashcode and equals method