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]

[266, 446, 112, 116, 14, 309, 407, 256, 27, 109, 13, 118, 448, 412, 135, 288, 270, 158, 189, 75]
[266, 446, 112, 116, 14, 309, 407, 256, 27, 109, 448, 118, 13, 412, 135, 288, 270, 158, 189, 75]

[463, 157, 394, 291, 236, 444, 476, 438, 339, 215, 398, 198, 326, 134, 195, 249, 239, 482, 268, 368]

[463, 157, 394, 291, 236, 444, 476, 438, 339, 215, 398, 198, 326, 482, 195, 249, 239, 134, 268, 368]

