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.

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

[427, 96, 142, 132, 231, 208, 368, 234, 238, 157, 365, 428, 149, 429, 337, 206, 260, 436, 194, 424]
[427, 436, 142, 132, 231, 208, 368, 234, 238, 157, 365, 428, 149, 429, 337, 206, 260, 96, 194, 424]

[331, 255, 149, 439, 494, 421, 356, 361, 394, 496, 342, 396, 137, 364, 189, 47, 174, 353, 220, 219]

[331, 255, 149, 439, 494, 421, 356, 361, 394, 47, 342, 396, 137, 364, 189, 496, 174, 353, 220, 219]