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: [82, 63, 259, 99, 462, 116, 461, 303, 58, 394, 358, 190, 218, 43, 108, 28, 174, 224, 492, 47]

A: [82, 63, 259, 99, 462, 116, 461, 303, 58, 394, 358, 190, 218, 43, 108, 492, 174, 224, 28, 47]
****
Q: [320, 10, 227, 416, 142, 312, 60, 139, 293, 413, 376, 404, 407, 180, 379, 303, 286, 315, 26, 240]

A: [320, 416, 227, 10, 142, 312, 60, 139, 293, 413, 376, 404, 407, 180, 379, 303, 286, 315, 26, 240]
****
Q: [382, 46, 60, 442, 155, 302, 345, 61, 277, 283, 393, 135, 452, 94, 322, 176, 64, 16, 121, 79]

A:
[382, 46, 60, 442, 155, 302, 345, 61, 277, 283, 393, 135, 16, 94, 322, 176, 64, 452, 121, 79]
****