IIT Kanpur Interview Question

How does a cooler work?