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.

[309, 15, 457, 143, 339, 76, 32, 107, 250, 228, 185, 484, 166, 172, 415, 264, 446, 278, 314, 34]
[309, 484, 457, 143, 339, 76, 32, 107, 250, 228, 185, 15, 166, 172, 415, 264, 446, 278, 314, 34]

[383, 310, 136, 63, 432, 287, 124, 203, 359, 221, 423, 493, 265, 363, 146, 76, 210, 48, 32, 119]
[383, 310, 136, 63, 432, 287, 124, 203, 359, 221, 423, 32, 265, 363, 146, 76, 210, 48, 493, 119]

[55, 409, 435, 374, 277, 460, 418, 43, 450, 399, 210, 260, 178, 289, 57, 262, 495, 499, 112, 26]

[55, 409, 435, 374, 277, 460, 418, 43, 450, 399, 210, 260, 178, 289, 57, 262, 495, 26, 112, 499]