AMD interview question

How does a transformer work in detail?