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: [471, 416, 38, 475, 92, 200, 179, 165, 124, 194, 163, 55, 292, 161, 315, 177, 120, 91, 128, 29]

A: [471, 416, 38, 29, 92, 200, 179, 165, 124, 194, 163, 55, 292, 161, 315, 177, 120, 91, 128, 475]
****
Q: [170, 498, 490, 349, 135, 345, 287, 182, 394, 23, 97, 14, 418, 274, 285, 78, 147, 215, 104, 387]

A: [170, 14, 490, 349, 135, 345, 287, 182, 394, 23, 97, 498, 418, 274, 285, 78, 147, 215, 104, 387]
****
Q: [486, 158, 150, 357, 48, 239, 117, 35, 294, 107, 427, 359, 360, 36, 121, 95, 247, 100, 314, 92]

A:
[35, 158, 150, 357, 48, 239, 117, 486, 294, 107, 427, 359, 360, 36, 121, 95, 247, 100, 314, 92]
****