Pregunta de entrevista de IIT Kanpur

How does a cooler work?