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.

[328, 399, 81, 127, 466, 77, 360, 489, 346, 413, 406, 359, 431, 197, 26, 451, 120, 237, 443, 427]
[328, 399, 81, 127, 466, 77, 360, 26, 346, 413, 406, 359, 431, 197, 489, 451, 120, 237, 443, 427]

[10, 480, 227, 122, 103, 371, 175, 131, 151, 260, 125, 449, 394, 198, 255, 178, 417, 149, 140, 256]
[480, 10, 227, 122, 103, 371, 175, 131, 151, 260, 125, 449, 394, 198, 255, 178, 417, 149, 140, 256]

[302, 130, 294, 366, 18, 311, 261, 263, 349, 160, 48, 323, 455, 177, 477, 384, 69, 377, 232, 107]

[302, 130, 294, 366, 477, 311, 261, 263, 349, 160, 48, 323, 455, 177, 18, 384, 69, 377, 232, 107]