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.

Example Input: [357, 126, 185, 18, 459, 254, 454, 404, 377, 134, 445, 209, 135, 462, 251, 23, 270, 40, 302, 19]
Example Output: [357, 126, 185, 462, 459, 254, 454, 404, 377, 134, 445, 209, 135, 18, 251, 23, 270, 40, 302, 19]

Example Input: [176, 166, 493, 27, 119, 265, 62, 317, 489, 443, 455, 488, 461, 189, 142, 351, 404, 187, 14, 182]
Example Output: [176, 166, 14, 27, 119, 265, 62, 317, 489, 443, 455, 488, 461, 189, 142, 351, 404, 187, 493, 182]

Example Input: [31, 364, 162, 376, 36, 497, 64, 10, 403, 264, 166, 426, 308, 232, 95, 406, 33, 170, 40, 311]
Example Output:
[31, 364, 162, 376, 36, 10, 64, 497, 403, 264, 166, 426, 308, 232, 95, 406, 33, 170, 40, 311]