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.

[285, 252, 257, 487, 236, 465, 184, 172, 30, 340, 339, 67, 462, 483, 489, 205, 456, 66, 84, 39]
[285, 252, 257, 487, 236, 465, 184, 172, 489, 340, 339, 67, 462, 483, 30, 205, 456, 66, 84, 39]

[292, 152, 415, 277, 64, 30, 247, 444, 25, 348, 178, 167, 122, 347, 131, 484, 69, 22, 231, 349]
[292, 152, 415, 277, 64, 30, 247, 444, 25, 348, 178, 167, 122, 347, 131, 22, 69, 484, 231, 349]

[106, 196, 137, 46, 222, 397, 497, 442, 244, 464, 481, 303, 424, 177, 390, 143, 308, 422, 473, 82]
[106, 196, 137, 497, 222, 397, 46, 442, 244, 464, 481, 303, 424, 177, 390, 143, 308, 422, 473, 82]