TT Consultants interview question

How does an AC work?