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.

[285, 252, 257, 487, 236, 465, 184, 172, 30, 340, 339, 67, 462, 483, 489, 205, 456, 66, 84, 39]
[285, 252, 257, 487, 236, 465, 184, 172, 489, 340, 339, 67, 462, 483, 30, 205, 456, 66, 84, 39]

[72, 413, 263, 368, 213, 59, 15, 109, 330, 249, 419, 73, 267, 485, 499, 353, 210, 476, 118, 339]
[72, 413, 263, 368, 213, 59, 499, 109, 330, 249, 419, 73, 267, 485, 15, 353, 210, 476, 118, 339]

[275, 398, 432, 305, 25, 124, 329, 12, 422, 466, 295, 96, 29, 365, 427, 389, 284, 397, 13, 99]

[275, 398, 432, 305, 25, 124, 329, 466, 422, 12, 295, 96, 29, 365, 427, 389, 284, 397, 13, 99]