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.

Input: Consider Input: [477, 200, 377, 405, 450, 137, 333, 139, 195, 52, 445, 154, 61, 63, 441, 455, 308, 354, 19, 340]

Output: [19, 200, 377, 405, 450, 137, 333, 139, 195, 52, 445, 154, 61, 63, 441, 455, 308, 354, 477, 340]


Input: Consider Input: [480, 194, 225, 247, 223, 287, 237, 418, 83, 73, 170, 91, 118, 325, 211, 62, 440, 191, 384, 442]

Output: [62, 194, 225, 247, 223, 287, 237, 418, 83, 73, 170, 91, 118, 325, 211, 480, 440, 191, 384, 442]


Input: Consider Input: [162, 27, 140, 274, 414, 376, 104, 159, 418, 155, 493, 151, 422, 335, 187, 292, 217, 31, 248, 84]


Output: [162, 493, 140, 274, 414, 376, 104, 159, 418, 155, 27, 151, 422, 335, 187, 292, 217, 31, 248, 84]