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.

[362, 207, 161, 47, 268, 177, 18, 311, 12, 137, 368, 493, 300, 447, 140, 448, 495, 405, 388, 244]
[362, 207, 161, 47, 268, 177, 18, 311, 495, 137, 368, 493, 300, 447, 140, 448, 12, 405, 388, 244]

[221, 493, 17, 466, 353, 191, 141, 343, 347, 247, 78, 110, 342, 228, 492, 392, 61, 106, 104, 113]
[221, 17, 493, 466, 353, 191, 141, 343, 347, 247, 78, 110, 342, 228, 492, 392, 61, 106, 104, 113]

[152, 116, 100, 375, 391, 303, 242, 390, 269, 470, 277, 35, 184, 350, 292, 347, 441, 29, 262, 171]

[152, 116, 100, 375, 391, 303, 242, 390, 269, 29, 277, 35, 184, 350, 292, 347, 441, 470, 262, 171]