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.

[157, 298, 54, 206, 237, 485, 440, 282, 247, 450, 28, 280, 474, 496, 379, 390, 392, 217, 422, 165]
[157, 298, 54, 206, 237, 485, 440, 282, 247, 450, 496, 280, 474, 28, 379, 390, 392, 217, 422, 165]

[115, 431, 65, 400, 54, 160, 43, 40, 372, 125, 495, 481, 180, 484, 35, 230, 466, 20, 375, 252]
[115, 431, 65, 400, 54, 160, 43, 40, 372, 125, 20, 481, 180, 484, 35, 230, 466, 495, 375, 252]

[331, 491, 492, 19, 382, 167, 316, 441, 341, 293, 137, 163, 311, 336, 442, 493, 77, 476, 121, 32]

[331, 491, 492, 493, 382, 167, 316, 441, 341, 293, 137, 163, 311, 336, 442, 19, 77, 476, 121, 32]

