Pinterest Interview Question

Explain attention mechanism in transformers.