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.

[EX Q]: [162, 27, 140, 274, 414, 376, 104, 159, 418, 155, 493, 151, 422, 335, 187, 292, 217, 31, 248, 84]
[EX A]: [162, 493, 140, 274, 414, 376, 104, 159, 418, 155, 27, 151, 422, 335, 187, 292, 217, 31, 248, 84]

[EX Q]: [29, 411, 366, 438, 162, 117, 121, 436, 351, 344, 357, 420, 32, 464, 289, 395, 187, 132, 258, 425]
[EX A]: [464, 411, 366, 438, 162, 117, 121, 436, 351, 344, 357, 420, 32, 29, 289, 395, 187, 132, 258, 425]

[EX Q]: [447, 170, 78, 324, 75, 397, 187, 24, 79, 73, 148, 127, 277, 419, 121, 408, 20, 384, 354, 109]
[EX A]:
[20, 170, 78, 324, 75, 397, 187, 24, 79, 73, 148, 127, 277, 419, 121, 408, 447, 384, 354, 109]