Pregunta de entrevista de SmartStream Technologies

How to compare objects in arraylist?