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: [134, 90, 332, 408, 359, 366, 186, 335, 474, 378, 249, 307, 302, 421, 171, 461, 422, 30, 344, 295]

A: [134, 90, 332, 408, 359, 366, 186, 335, 30, 378, 249, 307, 302, 421, 171, 461, 422, 474, 344, 295]
****
Q: [51, 478, 19, 347, 243, 112, 95, 326, 321, 23, 230, 161, 74, 99, 409, 440, 405, 377, 317, 481]

A: [51, 478, 481, 347, 243, 112, 95, 326, 321, 23, 230, 161, 74, 99, 409, 440, 405, 377, 317, 19]
****
Q: [146, 168, 185, 214, 455, 494, 354, 479, 233, 332, 118, 371, 122, 384, 447, 39, 422, 352, 127, 99]

A:
[146, 168, 185, 214, 455, 39, 354, 479, 233, 332, 118, 371, 122, 384, 447, 494, 422, 352, 127, 99]
****