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.

[31, 364, 162, 376, 36, 497, 64, 10, 403, 264, 166, 426, 308, 232, 95, 406, 33, 170, 40, 311]
[31, 364, 162, 376, 36, 10, 64, 497, 403, 264, 166, 426, 308, 232, 95, 406, 33, 170, 40, 311]

[134, 286, 251, 323, 396, 64, 294, 191, 75, 189, 386, 455, 30, 116, 287, 96, 420, 475, 382, 186]
[134, 286, 251, 323, 396, 64, 294, 191, 75, 189, 386, 455, 475, 116, 287, 96, 420, 30, 382, 186]

[337, 269, 373, 439, 95, 446, 50, 333, 16, 318, 259, 342, 224, 461, 52, 171, 154, 193, 395, 122]
[337, 269, 373, 439, 95, 446, 50, 333, 461, 318, 259, 342, 224, 16, 52, 171, 154, 193, 395, 122]