Amazon interview question

How does a Transformer work