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: [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: [272, 435, 256, 391, 402, 466, 428, 129, 110, 413, 65, 263, 174, 346, 98, 389, 62, 250, 169, 457]

Answer: [272, 435, 256, 391, 402, 62, 428, 129, 110, 413, 65, 263, 174, 346, 98, 389, 466, 250, 169, 457]


Question: [170, 498, 490, 349, 135, 345, 287, 182, 394, 23, 97, 14, 418, 274, 285, 78, 147, 215, 104, 387]

Answer:
[170, 14, 490, 349, 135, 345, 287, 182, 394, 23, 97, 498, 418, 274, 285, 78, 147, 215, 104, 387]