Wipro interview question

How does transformer work and what will change if we make changes in encoder decoder blocks?