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.

[381, 400, 249, 254, 218, 89, 138, 417, 447, 419, 83, 15, 108, 228, 307, 102, 226, 65, 320, 224]
[381, 400, 249, 254, 218, 89, 138, 417, 15, 419, 83, 447, 108, 228, 307, 102, 226, 65, 320, 224]

[178, 290, 466, 27, 49, 124, 287, 462, 459, 486, 489, 464, 48, 13, 293, 136, 482, 407, 336, 415]
[178, 290, 466, 27, 49, 124, 287, 462, 459, 486, 13, 464, 48, 489, 293, 136, 482, 407, 336, 415]

[212, 35, 419, 307, 432, 159, 493, 38, 385, 442, 119, 328, 409, 221, 113, 330, 20, 395, 267, 259]

[212, 35, 419, 307, 432, 159, 20, 38, 385, 442, 119, 328, 409, 221, 113, 330, 493, 395, 267, 259]

