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: [176, 172, 188, 385, 356, 24, 104, 497, 330, 222, 270, 266, 427, 182, 492, 224, 249, 470, 58, 391]

Answer: [176, 172, 188, 385, 356, 497, 104, 24, 330, 222, 270, 266, 427, 182, 492, 224, 249, 470, 58, 391]

Question: [162, 27, 140, 274, 414, 376, 104, 159, 418, 155, 493, 151, 422, 335, 187, 292, 217, 31, 248, 84]

Answer: [162, 493, 140, 274, 414, 376, 104, 159, 418, 155, 27, 151, 422, 335, 187, 292, 217, 31, 248, 84]

Question: [194, 357, 428, 137, 258, 406, 376, 68, 190, 99, 449, 220, 52, 340, 432, 88, 112, 40, 39, 326]

Answer:
[194, 357, 428, 137, 258, 406, 376, 68, 190, 99, 39, 220, 52, 340, 432, 88, 112, 40, 449, 326]