Siemens interview question

What is a transformer and how does it work?