In this task, you are given a list of unique integers you need to swap the positions of maximum and minimum element in the list and return the updated list.
--------
Question: [329, 163, 460, 187, 365, 470, 317, 350, 354, 431, 378, 271, 223, 294, 48, 118, 450, 151, 337, 284]

Answer: [329, 163, 460, 187, 365, 48, 317, 350, 354, 431, 378, 271, 223, 294, 470, 118, 450, 151, 337, 284]


Question: [41, 462, 109, 353, 276, 318, 95, 383, 102, 150, 229, 211, 114, 118, 288, 113, 249, 107, 320, 368]

Answer: [462, 41, 109, 353, 276, 318, 95, 383, 102, 150, 229, 211, 114, 118, 288, 113, 249, 107, 320, 368]


Question: [420, 59, 180, 32, 111, 494, 38, 282, 435, 432, 147, 422, 414, 260, 51, 332, 343, 207, 362, 474]

Answer:
[420, 59, 180, 494, 111, 32, 38, 282, 435, 432, 147, 422, 414, 260, 51, 332, 343, 207, 362, 474]


