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.

Q: [165, 22, 87, 424, 154, 434, 433, 149, 478, 426, 489, 275, 18, 320, 442, 318, 303, 104, 472, 29]

A: [165, 22, 87, 424, 154, 434, 433, 149, 478, 426, 18, 275, 489, 320, 442, 318, 303, 104, 472, 29]
****
Q: [416, 325, 428, 413, 489, 314, 17, 375, 103, 16, 34, 183, 47, 111, 285, 281, 159, 86, 447, 107]

A: [416, 325, 428, 413, 16, 314, 17, 375, 103, 489, 34, 183, 47, 111, 285, 281, 159, 86, 447, 107]
****
Q: [335, 387, 238, 71, 92, 382, 227, 348, 383, 475, 117, 181, 345, 288, 23, 397, 39, 273, 343, 202]

A:
[335, 387, 238, 71, 92, 382, 227, 348, 383, 23, 117, 181, 345, 288, 475, 397, 39, 273, 343, 202]
****