NVIDIA interview question

what's difference between decoder and encoder only LLM?