IIT Kanpur interview question

How does a cooler work?