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: [362, 207, 161, 47, 268, 177, 18, 311, 12, 137, 368, 493, 300, 447, 140, 448, 495, 405, 388, 244]

A: [362, 207, 161, 47, 268, 177, 18, 311, 495, 137, 368, 493, 300, 447, 140, 448, 12, 405, 388, 244]
****
Q: [464, 105, 267, 441, 38, 294, 359, 117, 236, 133, 81, 190, 465, 456, 485, 167, 474, 468, 458, 447]

A: [464, 105, 267, 441, 485, 294, 359, 117, 236, 133, 81, 190, 465, 456, 38, 167, 474, 468, 458, 447]
****
Q: [272, 435, 256, 391, 402, 466, 428, 129, 110, 413, 65, 263, 174, 346, 98, 389, 62, 250, 169, 457]

A:
[272, 435, 256, 391, 402, 62, 428, 129, 110, 413, 65, 263, 174, 346, 98, 389, 466, 250, 169, 457]
****