Amazon Interview Question

What is self-attention and how does a transformer work?