Microchip Technology interview question

Explain Encoder and Decoder with real life example