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.

[265, 475, 341, 442, 418, 161, 53, 69, 485, 331, 436, 450, 144, 455, 98, 488, 333, 273, 221, 51]
[265, 475, 341, 442, 418, 161, 53, 69, 485, 331, 436, 450, 144, 455, 98, 51, 333, 273, 221, 488]

[261, 30, 36, 116, 92, 370, 295, 348, 70, 247, 286, 63, 19, 267, 111, 206, 257, 107, 461, 174]
[261, 30, 36, 116, 92, 370, 295, 348, 70, 247, 286, 63, 461, 267, 111, 206, 257, 107, 19, 174]

[282, 38, 402, 29, 79, 187, 434, 308, 398, 386, 470, 358, 266, 214, 145, 115, 380, 66, 20, 136]
[282, 38, 402, 29, 79, 187, 434, 308, 398, 386, 20, 358, 266, 214, 145, 115, 380, 66, 470, 136]